diff options
Diffstat (limited to 'lib/arel')
-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 |