diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2010-12-14 14:56:15 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2010-12-14 14:56:15 -0800 |
commit | fe35956bf7b51bc533850449bd9135cc269da2ac (patch) | |
tree | 86ba0e6a0032f92c3d084cce77f6e58ac31bf01e /lib | |
parent | 24d598fad1a80c3ec1875588be577a37f9e4f9f9 (diff) | |
download | rails-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')
-rw-r--r-- | lib/arel/select_manager.rb | 4 |
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" |