Class: RailsAdmin::Config::Fields::Types::NestedList

Inherits:
Association
  • Object
show all
Defined in:
lib/rails_admin_extended_fields.rb

Instance Method Summary collapse

Instance Method Details

#errorsObject

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_nameObject



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