diff options
author | Bryan Helmkamp <bryan@brynary.com> | 2009-05-17 13:58:29 -0400 |
---|---|---|
committer | Bryan Helmkamp <bryan@brynary.com> | 2009-05-17 13:58:29 -0400 |
commit | 2bbf8ca9d2af3ea959a21c3729b4894bc31f088b (patch) | |
tree | d28994667dbebe135cc7c43d3948a5e5d968f214 /lib/arel/relations/writes/delete.rb | |
parent | 49d119ae84bbb7cd180ca855cf48997dc731554c (diff) | |
download | rails-2bbf8ca9d2af3ea959a21c3729b4894bc31f088b.tar.gz rails-2bbf8ca9d2af3ea959a21c3729b4894bc31f088b.tar.bz2 rails-2bbf8ca9d2af3ea959a21c3729b4894bc31f088b.zip |
reorganized call
Conflicts:
doc/TODO
lib/arel/relations/relation.rb
lib/arel/relations/writes/delete.rb
lib/arel/relations/writes/insert.rb
lib/arel/relations/writes/update.rb
lib/arel/session.rb
spec/arel/unit/relations/delete_spec.rb
spec/arel/unit/relations/insert_spec.rb
spec/arel/unit/relations/relation_spec.rb
spec/arel/unit/relations/update_spec.rb
spec/arel/unit/session/session_spec.rb
Diffstat (limited to 'lib/arel/relations/writes/delete.rb')
-rw-r--r-- | lib/arel/relations/writes/delete.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/arel/relations/writes/delete.rb b/lib/arel/relations/writes/delete.rb index b1ff3bef27..0a04454e7f 100644 --- a/lib/arel/relations/writes/delete.rb +++ b/lib/arel/relations/writes/delete.rb @@ -12,8 +12,8 @@ module Arel ].compact.join("\n") end - def call(connection = engine) - connection.delete(to_sql) + def call + engine.delete(self) end end end |