Module: ActiveRecord::Like::WhereChainExtensions

Defined in:
lib/active_record/like.rb

Instance Method Summary collapse

Instance Method Details

#like(opts, *rest) ⇒ Object



7
8
9
# File 'lib/active_record/like.rb', line 7

def like(opts, *rest)
  ActiveRecord::Like::ScopeSpawners::LikeScopeSpawners.spawn(@scope, opts, rest)
end

#not_like(opts, *rest) ⇒ Object



11
12
13
# File 'lib/active_record/like.rb', line 11

def not_like(opts, *rest)
  ActiveRecord::Like::ScopeSpawners::NotLikeScopeSpawners.spawn(@scope, opts, rest)
end