Class: ActiveRecord::Reflection::AssociationReflection
- Inherits:
-
Object
- Object
- ActiveRecord::Reflection::AssociationReflection
- Defined in:
- lib/activerecord_sortable/association_reflection.rb
Instance Method Summary collapse
Instance Method Details
#sortable? ⇒ Boolean
10 11 12 |
# File 'lib/activerecord_sortable/association_reflection.rb', line 10 def sortable? @options.fetch(:sortable, false) end |
#sortable_field ⇒ Object
6 7 8 |
# File 'lib/activerecord_sortable/association_reflection.rb', line 6 def sortable_field @options.fetch(:sortable_field, :position).to_sym end |