module Sequel::Plugins::SubsetConditions::DatasetModuleMethods

Public Instance Methods

where(name, *args, &block) click to toggle source

Also create a method that returns the conditions the filter uses.

Calls superclass method
# File lib/sequel/plugins/subset_conditions.rb, line 38
def where(name, *args, &block)
  super
  cond = args
  cond = cond.first if cond.size == 1
  define_method(:"#{name}_conditions"){filter_expr(cond, &block)}
end