Module: WhereLower::ActiveRecordExtension::ClassMethods
- Defined in:
- lib/where_lower/active_record_extension.rb
Overview
:nodoc:
Instance Method Summary collapse
-
#where_lower(fields) ⇒ Object
A bit like ‘where`, but only accept hash, with value of `String`, `Array`, `Range`.
Instance Method Details
#where_lower(fields) ⇒ Object
A bit like ‘where`, but only accept hash, with value of `String`, `Array`, `Range`
28 29 30 31 32 |
# File 'lib/where_lower/active_record_extension.rb', line 28 def where_lower(fields) fail AugumentError, "fields is not a Hash" unless fields.is_a?(Hash) WhereLower::Base.spawn_lower_scope(self, fields) end |