Module: Sequel::Plugins::List::ClassMethods

Defined in:
lib/sequel/plugins/list.rb

Instance Attribute Summary collapse

Instance Attribute Details

#position_fieldObject

The column name holding the position in the list, as a symbol.



74
75
76
# File 'lib/sequel/plugins/list.rb', line 74

def position_field
  @position_field
end

#scope_procObject

A proc that scopes the dataset, so that there can be multiple positions in the list, but the positions are unique with the scoped dataset. This proc should accept an instance and return a dataset representing the list.



79
80
81
# File 'lib/sequel/plugins/list.rb', line 79

def scope_proc
  @scope_proc
end