splendeo-generators 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -11,7 +11,7 @@ en:
11
11
 
12
12
  flash_notice_successfully_created: "Successfully created {{model}}"
13
13
  flash_notice_successfully_destroyed: "Successfully destroyed {{model}}"
14
- flash_notice_successfully_updated: "Successfully destroyed {{model}}"
14
+ flash_notice_successfully_updated: "Successfully updated {{model}}"
15
15
 
16
16
  # Formtastic buttons
17
17
  formtastic:
@@ -144,7 +144,7 @@ class SplendeoScaffoldGenerator < Rails::Generator::Base
144
144
  return tab_string + text.rstrip.gsub("\n", "\n#{tab_string}") + "\n"
145
145
  end
146
146
 
147
- def link(action, options={})
147
+ def render_link(action, options={})
148
148
  if action? action
149
149
  @action = action
150
150
 
@@ -4,7 +4,7 @@
4
4
 
5
5
  <%- if actions? :show, :index -%>
6
6
  <p>
7
- <%= link :show, :ident => 1 -%>
8
- <%= link :index, :ident => 1 -%>
7
+ <%= render_link :show, :ident => 1 -%>
8
+ <%= render_link :index, :ident => 1 -%>
9
9
  </p>
10
10
  <%- end -%>
@@ -11,11 +11,11 @@
11
11
  <%- for attribute in attributes -%>
12
12
  <td><%%=h <%= singular_name %>.<%= attribute.name %> %></td>
13
13
  <%- end -%>
14
- <%= link :show, :ident => 3, :tag => :td, :instance_variable => false -%>
15
- <%= link :edit, :ident => 3, :tag => :td, :instance_variable => false -%>
16
- <%= link :destroy, :ident => 3, :tag => :td, :instance_variable => false -%>
14
+ <%= render_link :show, :ident => 3, :tag => :td, :instance_variable => false -%>
15
+ <%= render_link :edit, :ident => 3, :tag => :td, :instance_variable => false -%>
16
+ <%= render_link :destroy, :ident => 3, :tag => :td, :instance_variable => false -%>
17
17
  </tr>
18
18
  <%% end %>
19
19
  </table>
20
20
 
21
- <%= link :new, :tag => :p -%>
21
+ <%= render_link :new, :tag => :p -%>
@@ -2,4 +2,4 @@
2
2
 
3
3
  <%= render_form %>
4
4
 
5
- <%= link :index, :tag => :p -%>
5
+ <%= render_link :index, :tag => :p -%>
@@ -8,7 +8,7 @@
8
8
  <%- end -%>
9
9
 
10
10
  <p>
11
- <%= link :edit, :ident => 1 -%>
12
- <%= link :destroy, :ident => 1 -%>
13
- <%= link :index, :ident => 1 -%>
11
+ <%= render_link :edit, :ident => 1 -%>
12
+ <%= render_link :destroy, :ident => 1 -%>
13
+ <%= render_link :index, :ident => 1 -%>
14
14
  </p>
@@ -4,6 +4,6 @@
4
4
 
5
5
  <%- if actions? :show, :index -%>
6
6
  %p
7
- <%= link :show , :ident => 1 -%>
8
- <%= link :index, :ident => 1 -%>
7
+ <%= render_link :show , :ident => 1 -%>
8
+ <%= render_link :index, :ident => 1 -%>
9
9
  <%- end -%>
@@ -10,10 +10,9 @@
10
10
  <%- for attribute in attributes -%>
11
11
  %td= h <%= singular_name %>.<%= attribute.name %>
12
12
  <%- end -%>
13
- <%= link :show, :ident => 3, :tag => :td, :instance_variable => false -%>
14
- <%= link :edit, :ident => 3, :tag => :td, :instance_variable => false -%>
15
- <%= link :destroy, :ident => 3, :tag => :td, :instance_variable => false -%>
13
+ <%= render_link :show, :ident => 3, :tag => :td, :instance_variable => false -%>
14
+ <%= render_link :edit, :ident => 3, :tag => :td, :instance_variable => false -%>
15
+ <%= render_link :destroy, :ident => 3, :tag => :td, :instance_variable => false -%>
16
+
17
+ <%= render_link :new, :tag => :p -%>
16
18
 
17
- <%- if actions? :new -%>
18
- <%= link :new, :tag => :p -%>
19
- <%- end -%>
@@ -2,4 +2,4 @@
2
2
 
3
3
  <%= render_form %>
4
4
 
5
- <%= link :index, :tag => :p -%>
5
+ <%= render_link :index, :tag => :p -%>
@@ -8,6 +8,6 @@
8
8
  <%- end -%>
9
9
 
10
10
  %p
11
- <%= link :edit, :ident => 1 %>
12
- <%= link :destroy, :ident => 1 %>
13
- <%= link :index, :ident => 1 %>
11
+ <%= render_link :edit, :ident => 1 %>
12
+ <%= render_link :destroy, :ident => 1 %>
13
+ <%= render_link :index, :ident => 1 %>
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 3
8
- - 0
9
- version: 0.3.0
8
+ - 1
9
+ version: 0.3.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - Ryan Bates