diff options
Diffstat (limited to 'activerecord/lib/arel/alias_predication.rb')
-rw-r--r-- | activerecord/lib/arel/alias_predication.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/activerecord/lib/arel/alias_predication.rb b/activerecord/lib/arel/alias_predication.rb new file mode 100644 index 0000000000..4abbbb7ef6 --- /dev/null +++ b/activerecord/lib/arel/alias_predication.rb @@ -0,0 +1,9 @@ +# frozen_string_literal: true + +module Arel # :nodoc: all + module AliasPredication + def as(other) + Nodes::As.new self, Nodes::SqlLiteral.new(other) + end + end +end |