Class: Adminable::Attributes::Types::BelongsTo
- Includes:
- Association
- Defined in:
- lib/adminable/attributes/types/belongs_to.rb
Instance Attribute Summary
Attributes included from Association
#association, #options_for_select
Attributes inherited from Base
#center, #name, #ransack_name, #required, #show, #wysiwyg
Instance Method Summary collapse
Methods inherited from Base
#form_partial_path, #index_partial_path, #initialize, #strong_parameter, #type
Constructor Details
This class inherits a constructor from Adminable::Attributes::Base
Instance Method Details
#key ⇒ Object
7 8 9 |
# File 'lib/adminable/attributes/types/belongs_to.rb', line 7 def key @association.foreign_key end |