diff options
Diffstat (limited to 'lib/arel/nodes/exists.rb')
-rw-r--r-- | lib/arel/nodes/exists.rb | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/lib/arel/nodes/exists.rb b/lib/arel/nodes/exists.rb index 167a345006..18ba8403b4 100644 --- a/lib/arel/nodes/exists.rb +++ b/lib/arel/nodes/exists.rb @@ -1,11 +1,7 @@ module Arel module Nodes - class Exists - attr_reader :select_stmt - - def initialize select_stmt - @select_stmt = select_stmt - end + class Exists < Arel::Nodes::Function + alias :select_stmt :expressions end end end |