Module Sequel::Plugins::TableSelect
In: lib/sequel/plugins/table_select.rb

The table_select plugin changes the default selection for a model dataset from * to table.*. This makes it so that if you join the model‘s dataset to other tables, columns in the other tables do not appear in the result sets (and possibly overwrite columns in the current model with the same name).

Usage:

  # Make all model subclasses select table.*
  Sequel::Model.plugin :table_select

  # Make the Album class select albums.*
  Album.plugin :table_select

Methods

configure  

Classes and Modules

Module Sequel::Plugins::TableSelect::ClassMethods

Public Class methods

Modify the current model‘s dataset selection, if the model has a dataset.

[Source]

    # File lib/sequel/plugins/table_select.rb, line 22
22:       def self.configure(model)
23:         model.instance_eval do
24:           self.dataset = dataset if @dataset
25:         end
26:       end

[Validate]