aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2010-12-24 16:01:07 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2010-12-24 16:01:07 -0700
commit23b03baba611b0ef664eec9e9384c14099eb73e9 (patch)
treec8ca1a4afa2d93662dea7b8c7dd96535df322e08 /activerecord
parent0fbf829b1e147c6c0f6c9d5e447bad0e9216b7b1 (diff)
downloadrails-23b03baba611b0ef664eec9e9384c14099eb73e9.tar.gz
rails-23b03baba611b0ef664eec9e9384c14099eb73e9.tar.bz2
rails-23b03baba611b0ef664eec9e9384c14099eb73e9.zip
use the sql literal factory method
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/lib/active_record/relation.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/relation.rb b/activerecord/lib/active_record/relation.rb
index dd73972416..20e983b5f7 100644
--- a/activerecord/lib/active_record/relation.rb
+++ b/activerecord/lib/active_record/relation.rb
@@ -174,7 +174,7 @@ module ActiveRecord
order = arel.orders
end
- stmt = arel.compile_update(Arel::SqlLiteral.new(@klass.send(:sanitize_sql_for_assignment, updates)))
+ stmt = arel.compile_update(Arel.sql(@klass.send(:sanitize_sql_for_assignment, updates)))
stmt.take limit
stmt.order(*order)
stmt.key = @klass.arel_table[@klass.primary_key]