Module: ActiveRecord::Like::ScopeSpawners::LikeScopeSpawners
- Defined in:
- lib/active_record/like/scope_spawner.rb
Defined Under Namespace
Classes: AbstractSpawner, Rails71AndBelowSpawner, Rails72Spawner
Class Method Summary collapse
-
.spawn(*args) ⇒ ActiveRecord::Relation
Spawn different scopes based on value Data conversion and query string generation are handled by different spanwer classes.
Class Method Details
.spawn(*args) ⇒ ActiveRecord::Relation
Spawn different scopes based on value Data conversion and query string generation are handled by different spanwer classes
56 57 58 59 |
# File 'lib/active_record/like/scope_spawner.rb', line 56 def self.spawn(*args) RAILS_VERSION_TO_SPAWNER_CLASS_MAPPINGS.fetch(ActiveRecord.version.to_s[0..2]). spawn(*args) end |