From 65cec345b487a784c9dae4155f74e70befc0bddb Mon Sep 17 00:00:00 2001 From: Kevin Deisz Date: Mon, 21 Jan 2019 10:28:39 -0500 Subject: Alias case nodes When `Arel` was merged into `ActiveRecord` we lost the ability to alias case nodes. This adds it back. --- activerecord/lib/arel/nodes/case.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'activerecord/lib/arel') diff --git a/activerecord/lib/arel/nodes/case.rb b/activerecord/lib/arel/nodes/case.rb index 654a54825e..b8f83128c8 100644 --- a/activerecord/lib/arel/nodes/case.rb +++ b/activerecord/lib/arel/nodes/case.rb @@ -3,6 +3,8 @@ module Arel # :nodoc: all module Nodes class Case < Arel::Nodes::Node + include Arel::AliasPredication + attr_accessor :case, :conditions, :default def initialize(expression = nil, default = nil) -- cgit v1.2.3