Skip to content

Commit

Permalink
Merge pull request #1968 from quainjn/fix_nested_has_one_association
Browse files Browse the repository at this point in the history
Fix inverse of check related to nested fields
  • Loading branch information
mshibuya committed Apr 20, 2014
2 parents bef6f02 + a87d1a8 commit 6ca05c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/rails_admin/main/_form_nested_one.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@
= form.fields_for field.name do |nested_form|
- if field.nested_form[:allow_destroy]
= nested_form.link_to_remove '<span class="btn btn-small btn-danger"><i class="icon-trash icon-white"></i></span>'.html_safe
= nested_form.generate({action: :nested, model_config: field.associated_model_config, nested_in: field.name })
= nested_form.generate({action: :nested, model_config: field.associated_model_config, nested_in: field })

0 comments on commit 6ca05c6

Please sign in to comment.