From 97bfc5b7328e1d2bc54b4592c931a2dcee9b7926 Mon Sep 17 00:00:00 2001
From: Jordan Sexton <jordan@jordansexton.com>
Date: Sat, 17 May 2014 16:15:31 -0500
Subject: Added #update_manager and #delete_manager convenience methods for
 consistency

---
 lib/arel/table.rb | 8 ++++++++
 1 file changed, 8 insertions(+)

(limited to 'lib')

diff --git a/lib/arel/table.rb b/lib/arel/table.rb
index 16ae83c284..b87c526de5 100644
--- a/lib/arel/table.rb
+++ b/lib/arel/table.rb
@@ -104,6 +104,14 @@ primary_key (#{caller.first}) is deprecated and will be removed in Arel 4.0.0
       InsertManager.new(@engine)
     end
 
+    def update_manager
+      UpdateManager.new(@engine)
+    end
+
+    def delete_manager
+      DeleteManager.new(@engine)
+    end
+
     def hash
       # Perf note: aliases, table alias and engine is excluded from the hash
       #  aliases can have a loop back to this table breaking hashes in parent
-- 
cgit v1.2.3