Class: Adminable::Attributes::Types::HasMany
- Defined in:
- lib/adminable/attributes/types/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::Attributes::Base
Instance Method Details
#key ⇒ Object
5 6 7 |
# File 'lib/adminable/attributes/types/has_many.rb', line 5 def key @key = "#{@name.to_s.singularize}_ids" end |
#strong_parameter ⇒ Object
9 10 11 |
# File 'lib/adminable/attributes/types/has_many.rb', line 9 def strong_parameter { key => [] } end |