class Sequel::Model::DatasetModule

  1. lib/sequel/model/dataset_module.rb
Superclass: DatasetModule

This Module subclass is used by Model.dataset_module to add dataset methods to classes. In addition to the methods offered by Dataset::DatasetModule, it also automatically creates class methods for public dataset methods.

Methods

Public Class

  1. new

Public Instance

  1. subset

Public Class methods

new(model)

Store the model related to this dataset module.

[show source]
   # File lib/sequel/model/dataset_module.rb
12 def initialize(model)
13   @model = model
14 end

Public Instance methods

subset(name, *args, &block)

Alias for where.

[show source]
   # File lib/sequel/model/dataset_module.rb
17 def subset(name, *args, &block)
18   where(name, *args, &block)
19 end