lib/ordered_list/active_record/reorderable.rb
def list
        list_scope_columns.inject(self.class.list) do |relation, column|
          relation.send(:bound_equality, column.to_s, read_attribute(column))
        end
      end
# Returns a relation that represents all items in the list this record
# is bound to based on the scope columns.
Returns a relation that represents all items in the list this record
is bound to based on the scope columns.
Returns a relation that represents all items in the list this record is bound to based on the scope columns .
def list
        list_scope_columns.inject(self.class.list) do |relation, column|
          relation.send(:bound_equality, column.to_s, read_attribute(column))
        end
      end
def list list_scope_columns . inject ( self . class . list ) do | relation , column | relation . send ( :bound_equality , column . to_s , read_attribute ( column ) ) end end
Returns a relation that represents all items in the list this record
is bound to based on the scope columns.
Returns a relation that represents all items in the list this record is bound to based on the scope columns .