diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2014-03-25 10:35:46 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2014-03-25 10:35:46 -0700 |
commit | dbe1f8b29a80bf07aa5df624f68b9de869c1f248 (patch) | |
tree | 55f734d602caf9cbef6663f5b43152ec125bec75 | |
parent | a4a33fbb0a2375bfb13795148c17d460f3c5338d (diff) | |
parent | 2fd000910915e665a0206ec21281a20dfb69bc51 (diff) | |
download | rails-dbe1f8b29a80bf07aa5df624f68b9de869c1f248.tar.gz rails-dbe1f8b29a80bf07aa5df624f68b9de869c1f248.tar.bz2 rails-dbe1f8b29a80bf07aa5df624f68b9de869c1f248.zip |
Merge branch 'rm_a' into ww2lin-rm_a
* rm_a:
take in to account quoted and translated values
-rw-r--r-- | lib/arel/select_manager.rb | 2 | ||||
-rw-r--r-- | test/test_factory_methods.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/arel/select_manager.rb b/lib/arel/select_manager.rb index cd84e263ad..5ab2778778 100644 --- a/lib/arel/select_manager.rb +++ b/lib/arel/select_manager.rb @@ -17,7 +17,7 @@ module Arel end def limit - @ast.limit && @ast.limit.expr + @ast.limit && @ast.limit.expr.expr end alias :taken :limit diff --git a/test/test_factory_methods.rb b/test/test_factory_methods.rb index 64d747610b..3e23b090b4 100644 --- a/test/test_factory_methods.rb +++ b/test/test_factory_methods.rb @@ -37,7 +37,7 @@ module Arel lower = @factory.lower :one assert_instance_of Nodes::NamedFunction, lower assert_equal 'LOWER', lower.name - assert_equal [:one], lower.expressions + assert_equal [:one], lower.expressions.map(&:expr) end end end |