Module: NoBrainer::Criteria::Core::ClassMethods
- Defined in:
- lib/no_brainer/criteria/core.rb
Instance Method Summary collapse
Instance Method Details
#_finalize_criteria(base) ⇒ Object
89 90 91 |
# File 'lib/no_brainer/criteria/core.rb', line 89 def _finalize_criteria(base) base.__send__(:chain, :finalized => true) end |
#criteria_option(*names) ⇒ Object
79 80 81 82 83 84 85 86 87 |
# File 'lib/no_brainer/criteria/core.rb', line 79 def criteria_option(*names) = names. names.map(&:to_sym).each do |name| merge_proc = [:merge_with] merge_proc = MergeStrategies.method(merge_proc) if merge_proc.is_a?(Symbol) self.[name] = merge_proc end end |