Method: ArelExtensions::Nodes::IMatches#initialize

Defined in:
lib/arel_extensions/nodes/matches.rb

#initialize(left, right, escape = nil) ⇒ IMatches

Returns a new instance of IMatches.



6
7
8
9
10
11
12
13
14
# File 'lib/arel_extensions/nodes/matches.rb', line 6

def initialize(left, right, escape = nil)
  r = Arel.quoted(right)
  if Arel::VERSION.to_i < 7 # managed by default in version 7+ (rails 5), so useful for rails 3 & 4
    super(left, r, escape)
    @case_sensitive = false
  else
    super(left, r, escape, false)
  end
end