Method: Amountable::ClassMethod#where
- Defined in:
- lib/amountable.rb
#where(opts, *rest) ⇒ Object
114 115 116 117 118 119 120 121 |
# File 'lib/amountable.rb', line 114 def where(opts, *rest) return super unless opts.is_a?(Hash) if self.storage == :jsonb where_json(opts, *rest) else super end end |