aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/arel/nodes/regexp.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activerecord/lib/arel/nodes/regexp.rb')
-rw-r--r--activerecord/lib/arel/nodes/regexp.rb15
1 files changed, 15 insertions, 0 deletions
diff --git a/activerecord/lib/arel/nodes/regexp.rb b/activerecord/lib/arel/nodes/regexp.rb
new file mode 100644
index 0000000000..8a76185ef0
--- /dev/null
+++ b/activerecord/lib/arel/nodes/regexp.rb
@@ -0,0 +1,15 @@
+# frozen_string_literal: true
+module Arel
+ module Nodes
+ class Regexp < Binary
+ attr_accessor :case_sensitive
+
+ def initialize(left, right, case_sensitive = true)
+ super(left, right)
+ @case_sensitive = case_sensitive
+ end
+ end
+
+ class NotRegexp < Regexp; end
+ end
+end