Module: WhereableScope::WhereChainExtension
- Includes:
- ScopeHandler
- Defined in:
- lib/whereable_scope/where_chain_extension.rb
Instance Method Summary collapse
Methods included from ScopeHandler
Instance Method Details
#not(opts, *rest) ⇒ Object
5 6 7 8 9 10 11 12 13 |
# File 'lib/whereable_scope/where_chain_extension.rb', line 5 def not(opts, *rest) case opts when Hash extract_whereable_scopes(opts, @scope.model) { |scope| @scope.merge!(scope.invert_where) } opts.empty? ? @scope : super else super end end |