Class: Adminable::Attributes::Types::BelongsTo
- Defined in:
- lib/adminable/attributes/types/belongs_to.rb
Instance Attribute Summary
Attributes inherited from Base
#association, #name, #options, #strong_parameter
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/belongs_to.rb', line 5 def key @association.reflection.foreign_key end |