aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel
diff options
context:
space:
mode:
authorJon Leighton <j@jonathanleighton.com>2011-08-11 08:51:13 +0100
committerJon Leighton <j@jonathanleighton.com>2011-08-11 21:47:30 +0100
commit34bd53ba015b8f9bca77172784e62994487eef9b (patch)
tree1ecf4443fd6a71db850b86d1d7f9667bd6aa09f4 /lib/arel
parent88c91f7cdbe904c0a215a05be76ae120eacb24fb (diff)
downloadrails-34bd53ba015b8f9bca77172784e62994487eef9b.tar.gz
rails-34bd53ba015b8f9bca77172784e62994487eef9b.tar.bz2
rails-34bd53ba015b8f9bca77172784e62994487eef9b.zip
Add SelectManager#source method to get the source of the ctx
Diffstat (limited to 'lib/arel')
-rw-r--r--lib/arel/select_manager.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/arel/select_manager.rb b/lib/arel/select_manager.rb
index cff3236a33..88f26e4894 100644
--- a/lib/arel/select_manager.rb
+++ b/lib/arel/select_manager.rb
@@ -224,6 +224,10 @@ module Arel
@ctx.source.right
end
+ def source
+ @ctx.source
+ end
+
def joins manager
if $VERBOSE
warn "joins is deprecated and will be removed in 3.0.0"