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.rb16
1 files changed, 16 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..7c25095569
--- /dev/null
+++ b/activerecord/lib/arel/nodes/regexp.rb
@@ -0,0 +1,16 @@
+# frozen_string_literal: true
+
+module Arel # :nodoc: all
+ 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