diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2010-09-10 17:05:10 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2010-09-10 17:05:10 -0700 |
commit | 54448c52099395220344bd760cefe35f7f551e4a (patch) | |
tree | 0f248c8f53b3d54d63890ebd56a10fc4e73768f8 /lib/arel | |
parent | f0f6b7fb90b936cb78d786896598486821db6559 (diff) | |
download | rails-54448c52099395220344bd760cefe35f7f551e4a.tar.gz rails-54448c52099395220344bd760cefe35f7f551e4a.tar.bz2 rails-54448c52099395220344bd760cefe35f7f551e4a.zip |
adding some backwards compatibility for AR
Diffstat (limited to 'lib/arel')
-rw-r--r-- | lib/arel/select_manager.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/arel/select_manager.rb b/lib/arel/select_manager.rb index 6942014208..ce74daab82 100644 --- a/lib/arel/select_manager.rb +++ b/lib/arel/select_manager.rb @@ -63,6 +63,8 @@ module Arel end def having expr + expr = Nodes::SqlLiteral.new(expr) if String === expr + @ctx.having = Nodes::Having.new(expr) self end |