Class: Adminable::Fields::HasMany
- Defined in:
- lib/adminable/fields/has_many.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
#form_partial_path, #index_partial_path, #initialize, #ransack_name, #type
Constructor Details
This class inherits a constructor from Adminable::Fields::Base
Instance Method Details
#key ⇒ Object
4 5 6 |
# File 'lib/adminable/fields/has_many.rb', line 4 def key "#{@name.to_s.singularize}_ids" end |
#strong_parameter ⇒ Object
8 9 10 |
# File 'lib/adminable/fields/has_many.rb', line 8 def strong_parameter { key => [] } end |