diff options
Diffstat (limited to 'lib/arel/relations/writes/update.rb')
-rw-r--r-- | lib/arel/relations/writes/update.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/arel/relations/writes/update.rb b/lib/arel/relations/writes/update.rb index 2e90de3a52..fd0aadb479 100644 --- a/lib/arel/relations/writes/update.rb +++ b/lib/arel/relations/writes/update.rb @@ -18,8 +18,8 @@ module Arel ].join("\n") end - def call(connection = engine) - connection.update(to_sql) + def call + engine.update(self) end end end |