Class: ActiveRecord::HashOptions::ILIKE

Inherits:
LIKE show all
Defined in:
lib/active_record/hash_options/operators.rb

Instance Attribute Summary

Attributes inherited from GenericOp

#expression, #expression2

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from LIKE

#call

Methods inherited from GenericOp

#initialize, quote

Constructor Details

This class inherits a constructor from ActiveRecord::HashOptions::GenericOp

Class Method Details

.arel_procObject



112
113
114
# File 'lib/active_record/hash_options/operators.rb', line 112

def self.arel_proc
  proc { |column, op| Arel::Nodes::Matches.new(column, GenericOp.quote(op.expression, column), nil, false) }
end

Instance Method Details

#like_to_regex(lk) ⇒ Object



116
117
118
# File 'lib/active_record/hash_options/operators.rb', line 116

def like_to_regex(lk)
  super(lk, Regexp::IGNORECASE)
end