Class | Sequel::Model::DatasetModule |
In: |
lib/sequel/model/dataset_module.rb
|
Parent: | ::Module |
This Module subclass is used by Model.dataset_module to add dataset methods to classes. It adds a couple of features standard Modules, allowing you to use the same subset method you can call on Model, as well as making sure that public methods added to the module automatically have class methods created for them.
Store the model related to this dataset module.
# File lib/sequel/model/dataset_module.rb, line 11 11: def initialize(model) 12: @model = model 13: end