Class: RailsAdmin::Config::Fields::Types::NestedList
- Inherits:
-
Association
- Object
- Association
- RailsAdmin::Config::Fields::Types::NestedList
- Defined in:
- lib/rails_admin_extended_fields.rb
Instance Method Summary collapse
-
#errors ⇒ Object
Reader for validation errors of the bound object.
- #method_name ⇒ Object
Instance Method Details
#errors ⇒ Object
Reader for validation errors of the bound object
50 51 52 |
# File 'lib/rails_admin_extended_fields.rb', line 50 def errors bindings[:object].errors[name] end |
#method_name ⇒ Object
45 46 47 |
# File 'lib/rails_admin_extended_fields.rb', line 45 def method_name nested_form ? "#{super}_attributes".to_sym : "#{super.to_s.singularize}_ids".to_sym # name_ids end |