Class: RailsAdmin::Config::Fields::Types::HasManyAssociation
- Inherits:
-
Association
- Object
- Base
- Association
- RailsAdmin::Config::Fields::Types::HasManyAssociation
- Defined in:
- lib/rails_admin/config/fields/types/has_many_association.rb
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from Base
#abstract_model, #defined, #name, #order, #parent, #properties, #root, #section
Attributes included from Proxyable
Instance Method Summary collapse
-
#errors ⇒ Object
Reader for validation errors of the bound object.
- #method_name ⇒ Object
Methods inherited from Association
#associated_model_config, #associated_object_label_method, #associated_primary_key, #association, #foreign_key, inherited, #inverse_of, #multiple?, #polymorphic?, #value, #virtual?
Methods inherited from Base
#association?, #editable?, #html_default_value, #initialize, #inverse_of, #optional, #optional=, #optional?, #type, #type_css_class, #value, #virtual?
Methods included from Groupable
Methods included from Hideable
#hidden?, #hide, included, #show
Methods included from Configurable
#has_option?, included, #register_deprecated_instance_option, #register_instance_option
Methods included from Proxyable
Constructor Details
This class inherits a constructor from RailsAdmin::Config::Fields::Base
Instance Method Details
#errors ⇒ Object
Reader for validation errors of the bound object
25 26 27 |
# File 'lib/rails_admin/config/fields/types/has_many_association.rb', line 25 def errors bindings[:object].errors[name] end |
#method_name ⇒ Object
20 21 22 |
# File 'lib/rails_admin/config/fields/types/has_many_association.rb', line 20 def method_name nested_form ? "#{super}_attributes" : "#{super.to_s.singularize}_ids" # name_ids end |