aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel
diff options
context:
space:
mode:
authorJon Leighton <j@jonathanleighton.com>2011-08-11 08:14:51 +0100
committerJon Leighton <j@jonathanleighton.com>2011-08-11 21:47:30 +0100
commit160917526a8d038d4fbb4d90635e26a9df8d8871 (patch)
tree422423bd2cd98dcd82928da7c2fb9513d3ef4884 /lib/arel
parent4f416f44981aff7911de5ac59835339a2967aff7 (diff)
downloadrails-160917526a8d038d4fbb4d90635e26a9df8d8871.tar.gz
rails-160917526a8d038d4fbb4d90635e26a9df8d8871.tar.bz2
rails-160917526a8d038d4fbb4d90635e26a9df8d8871.zip
add UpdateManager#key method to access the key
Diffstat (limited to 'lib/arel')
-rw-r--r--lib/arel/update_manager.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/arel/update_manager.rb b/lib/arel/update_manager.rb
index f13aeb0a8c..56e219040c 100644
--- a/lib/arel/update_manager.rb
+++ b/lib/arel/update_manager.rb
@@ -15,6 +15,10 @@ module Arel
@ast.key = key
end
+ def key
+ @ast.key
+ end
+
def order *expr
@ast.orders = expr
self