class Sequel::Model::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.
Attributes
model[R]
The model class related to this dataset module.
Public Class Methods
new(model)
click to toggle source
Store the model related to this dataset module.
# File lib/sequel/model/dataset_module.rb 15 def initialize(model) 16 @model = model 17 end
Public Instance Methods
subset(name, *args, &block)
click to toggle source
Alias for where.
# File lib/sequel/model/dataset_module.rb 20 def subset(name, *args, &block) 21 where(name, *args, &block) 22 end