aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2010-12-14 14:56:15 -0800
committerAaron Patterson <aaron.patterson@gmail.com>2010-12-14 14:56:15 -0800
commitfe35956bf7b51bc533850449bd9135cc269da2ac (patch)
tree86ba0e6a0032f92c3d084cce77f6e58ac31bf01e /lib/arel
parent24d598fad1a80c3ec1875588be577a37f9e4f9f9 (diff)
downloadrails-fe35956bf7b51bc533850449bd9135cc269da2ac.tar.gz
rails-fe35956bf7b51bc533850449bd9135cc269da2ac.tar.bz2
rails-fe35956bf7b51bc533850449bd9135cc269da2ac.zip
adding join_sources so we can access the join sources of the select core
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 ec1264c3c2..37f06f6a9f 100644
--- a/lib/arel/select_manager.rb
+++ b/lib/arel/select_manager.rb
@@ -151,6 +151,10 @@ module Arel
}
end
+ def join_sources
+ @ctx.source.right
+ end
+
def joins manager
if $VERBOSE
warn "joins is deprecated and will be removed in 3.0.0"