inherited_rails_views 1.1.0 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/Readme.md CHANGED
@@ -21,3 +21,8 @@ Add the inherited_rails_views gem to your Applications Gemfile:
21
21
  inherited_attributes :attr1, :attr2, :attr3 => {:value => "Custom Titled Attribute", :type => :checkbox}
22
22
  end
23
23
  end
24
+
25
+ You can also override any of the files in [https://github
26
+ .com/rweng/inherited_rails_views/tree/master/lib/inherited_rails_views/views/application][viewsdir].
27
+
28
+ [viewsdir]:https://github.com/rweng/inherited_rails_views/tree/master/lib/inherited_rails_views/views/application
@@ -1,3 +1,3 @@
1
1
  module InheritedRailsViews
2
- VERSION = "1.1.0"
2
+ VERSION = "1.1.1"
3
3
  end
@@ -0,0 +1,14 @@
1
+ <table>
2
+ <% inherited_attributes.each_pair do |k, v| %>
3
+ <tr class="field">
4
+ <td><%= f.label v[:value] %></td>
5
+ <td><%= f.send(v[:type], k) %></td>
6
+ </tr>
7
+ <% end %>
8
+ <tr>
9
+ <td></td>
10
+ <td class="actions">
11
+ <%= f.submit "Save" %>
12
+ </td>
13
+ </tr>
14
+ </table>
@@ -10,18 +10,5 @@
10
10
  </div>
11
11
  <% end %>
12
12
 
13
- <table>
14
- <% inherited_attributes.each_pair do |k, v| %>
15
- <tr>
16
- <td class="field"><%= f.label v[:value] %></td>
17
- <td class="field"><%= f.send(v[:type], k) %></td>
18
- </tr>
19
- <% end %>
20
- <tr>
21
- <td>
22
- <td class="actions">
23
- <%= f.submit "Save" %>
24
- </td>
25
- </tr>
26
- </table>
13
+ <%= render :partial => 'fields', :locals => {:f => f} %>
27
14
  <% end %>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: inherited_rails_views
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-09-13 00:00:00.000000000Z
12
+ date: 2011-09-16 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport
16
- requirement: &70208295656260 !ruby/object:Gem::Requirement
16
+ requirement: &70140041720960 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70208295656260
24
+ version_requirements: *70140041720960
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: rspec
27
- requirement: &70208295655360 !ruby/object:Gem::Requirement
27
+ requirement: &70140041720540 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '0'
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *70208295655360
35
+ version_requirements: *70140041720540
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: actionpack
38
- requirement: &70208295654380 !ruby/object:Gem::Requirement
38
+ requirement: &70140041720120 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,7 +43,7 @@ dependencies:
43
43
  version: '0'
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *70208295654380
46
+ version_requirements: *70140041720120
47
47
  description:
48
48
  email:
49
49
  - robin@wenglewski.de
@@ -59,6 +59,7 @@ files:
59
59
  - inherited_rails_views.gemspec
60
60
  - lib/inherited_rails_views.rb
61
61
  - lib/inherited_rails_views/version.rb
62
+ - lib/inherited_rails_views/views/application/_fields.html.erb
62
63
  - lib/inherited_rails_views/views/application/_form.html.erb
63
64
  - lib/inherited_rails_views/views/application/edit.html.erb
64
65
  - lib/inherited_rails_views/views/application/index.html.erb