scarfacedeb / rails_admin_globalize_field

Tabbed interface and custom field type for globalize translations for Rails_admin
MIT License
51 stars 61 forks source link

Pass field object instead of field.name #27

Closed rubyrider closed 5 years ago

rubyrider commented 7 years ago

Due to passing field.name in the following snippet, it was passing the name just but the receiver is expecting the field object and trying to call field.name. This fix will make the it compatible with the rails_admin latest version.

 nested_form.generate({:action => :nested, :model_config => field.associated_model_config, :nested_in => field })
scarfacedeb commented 5 years ago

Thank you! I refactored the code and fixed it in the new version.