diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2010-12-07 15:05:51 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2010-12-07 15:05:51 -0800 |
commit | 8f6752ef6e4c5ab0aaafad8c543f9925a7b33774 (patch) | |
tree | fa471f2b5f5fd9f16d392a0c551409b3b9bf6a26 /lib | |
parent | dfc66f44218aa2ef2bd768000fd6e83b4fd8c96a (diff) | |
download | rails-8f6752ef6e4c5ab0aaafad8c543f9925a7b33774.tar.gz rails-8f6752ef6e4c5ab0aaafad8c543f9925a7b33774.tar.bz2 rails-8f6752ef6e4c5ab0aaafad8c543f9925a7b33774.zip |
get from values out of the select manager
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 bbe41ac4f1..30495fc8d0 100644 --- a/lib/arel/select_manager.rb +++ b/lib/arel/select_manager.rb @@ -79,6 +79,10 @@ module Arel self end + def froms + @ast.cores.map { |x| x.from }.compact + end + def join relation, klass = Nodes::InnerJoin return self unless relation |