module Sequel::Plugins::SubsetConditions::ClassMethods
Public Instance Methods
subset(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 29 def subset(name, *args, &block) super cond = args cond = cond.first if cond.size == 1 def_dataset_method(:"#{name}_conditions"){filter_expr(cond, &block)} end