module Sequel::Plugins::List::ClassMethods

  1. lib/sequel/plugins/list.rb
Parent: List

Methods

Public Instance

  1. inherited
  2. position_field
  3. scope_proc

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)

Copy the position_field and scope_proc to the subclass.

[show source]
# File lib/sequel/plugins/list.rb, line 82
def inherited(subclass)
  super
  subclass.position_field = position_field
  subclass.scope_proc = scope_proc
end