diff options
author | Emilio Tagua <miloops@gmail.com> | 2010-02-25 12:15:22 -0300 |
---|---|---|
committer | Emilio Tagua <miloops@gmail.com> | 2010-02-25 12:15:22 -0300 |
commit | 6762cf774cfa84804650a12e4397891869ab6106 (patch) | |
tree | e244b9aee34226b65dc009ba7f0997ded0c6d96d | |
parent | 3c9f4be465126051d4a5230ada3dfea87d435fcd (diff) | |
download | rails-6762cf774cfa84804650a12e4397891869ab6106.tar.gz rails-6762cf774cfa84804650a12e4397891869ab6106.tar.bz2 rails-6762cf774cfa84804650a12e4397891869ab6106.zip |
Fix limited_update_conditions on MySQLCompiler to receive and build
limit.
-rw-r--r-- | lib/arel/engines/sql/compilers/mysql_compiler.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/arel/engines/sql/compilers/mysql_compiler.rb b/lib/arel/engines/sql/compilers/mysql_compiler.rb index ba3312ba72..cb12e7377a 100644 --- a/lib/arel/engines/sql/compilers/mysql_compiler.rb +++ b/lib/arel/engines/sql/compilers/mysql_compiler.rb @@ -1,7 +1,8 @@ module Arel module SqlCompiler class MySQLCompiler < GenericCompiler - def limited_update_conditions(conditions) + def limited_update_conditions(conditions, taken) + conditions << " LIMIT #{taken}" conditions end end |