Class: ActiveRecord::Like::ScopeSpawners::NotLikeScopeSpawners::Rails71AndBelowSpawner
- Inherits:
-
AbstractSpawner
- Object
- AbstractSpawner
- ActiveRecord::Like::ScopeSpawners::NotLikeScopeSpawners::Rails71AndBelowSpawner
- Includes:
- Shared::Rails7AndBelowSpawner
- Defined in:
- lib/active_record/like/scope_spawner.rb
Overview
:nodoc:
Instance Attribute Summary
Attributes inherited from AbstractSpawner
Instance Method Summary collapse
-
#spawn ⇒ Object
:nodoc:.
Methods inherited from AbstractSpawner
Constructor Details
This class inherits a constructor from ActiveRecord::Like::ScopeSpawners::NotLikeScopeSpawners::AbstractSpawner
Instance Method Details
#spawn ⇒ Object
:nodoc:
206 207 208 209 210 211 |
# File 'lib/active_record/like/scope_spawner.rb', line 206 def spawn @opts = opts.reject { |_, v| v.is_a?(Array) && v.empty? } chain_node(Arel::Nodes::DoesNotMatch) do |nodes| Arel::Nodes::And.new(nodes) end end |