class ActiveRecord::Reflection::AssociationReflection
Public Instance Methods
sortable?()
click to toggle source
# File lib/activerecord_sortable/association_reflection.rb, line 10 def sortable? @options.fetch(:sortable, false) end
sortable_field()
click to toggle source
# File lib/activerecord_sortable/association_reflection.rb, line 6 def sortable_field @options.fetch(:sortable_field, :position).to_sym end