Module: Sequel::Plugins::SubsetConditions::DatasetModuleMethods
- Defined in:
- lib/sequel/plugins/subset_conditions.rb
Instance Method Summary collapse
-
#where(name, *args, &block) ⇒ Object
Also create a method that returns the conditions the filter uses.
Instance Method Details
#where(name, *args, &block) ⇒ Object
Also create a method that returns the conditions the filter uses.
39 40 41 42 43 44 |
# File 'lib/sequel/plugins/subset_conditions.rb', line 39 def where(name, *args, &block) super cond = args cond = cond.first if cond.size == 1 define_method(:"#{name}_conditions"){filter_expr(cond, &block)} end |