hydra-editor 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 40c54c60fa466099585ec373927a14fbc83d17c7
|
4
|
+
data.tar.gz: ab0643c8a07d1d780d045f167ecd9304b7d134e6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cd8ca43480d157b920f86c390517172976069ea1b18a555a1a8ad86a5cf9ae2a08c4cd809280eed26b5c161fdf3ace0e32da75f55e49c3ba21eb3314416c9e9c
|
7
|
+
data.tar.gz: 68bed805ad1e646b1dbb4778672b8ac4e76642dbc52d792a3761eb4e649a679251ee04dec7ad73c9ac215597779376afb2e888caaf0fd52330f0f5f3bb52cd62
|
@@ -58,7 +58,7 @@ module RecordsControllerBehavior
|
|
58
58
|
|
59
59
|
# Override this method if you want to set different metadata on the object
|
60
60
|
def set_attributes
|
61
|
-
@record.attributes = params[@record
|
61
|
+
@record.attributes = params[ActiveModel::Naming.singular(@record)]
|
62
62
|
end
|
63
63
|
|
64
64
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
<div class="controls" <% if index == 0 %> id="additional_<%= key.to_s %>_clone" <% end %>>
|
2
2
|
<% required = render_req && (index == 0) && f.object.required?(key) %>
|
3
|
-
<%= text_field_tag "#{f.object
|
3
|
+
<%= text_field_tag "#{ActiveModel::Naming.singular(f.object)}[#{key.to_s}][]", v, :id => "#{ActiveModel::Naming.singular(f.object)}_#{key.to_s}", :class => "input-large", :required => required %>
|
4
4
|
<% unless f.object.class.unique?(key) %>
|
5
5
|
<%= render :partial=>"records/edit_fields/suffix", :locals=>{key: key, index: index} %>
|
6
6
|
<% end %>
|
data/lib/hydra_editor/version.rb
CHANGED