Methods

Class/Module Index [+]

Quicksearch

Sequel::Plugins::List::ClassMethods

Attributes

position_field[RW]

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

scope_proc[RW]

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.

Public Instance Methods

inherited(subclass) click to toggle source

Copy the position_field and scope_proc to the subclass.

# File lib/sequel/plugins/list.rb, line 80
def inherited(subclass)
  super
  subclass.position_field = position_field
  subclass.scope_proc = scope_proc
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.