Class: Adminable::Attributes::Types::HasMany

Inherits:
Base
  • Object
show all
Defined in:
lib/adminable/attributes/types/has_many.rb

Instance Attribute Summary

Attributes inherited from Base

#association, #name, #options

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

#keyObject



5
6
7
# File 'lib/adminable/attributes/types/has_many.rb', line 5

def key
  @key = "#{@name.to_s.singularize}_ids"
end

#strong_parameterObject



9
10
11
# File 'lib/adminable/attributes/types/has_many.rb', line 9

def strong_parameter
  { key => [] }
end