aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel/select_manager.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/arel/select_manager.rb')
-rw-r--r--lib/arel/select_manager.rb6
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/arel/select_manager.rb b/lib/arel/select_manager.rb
index 7512dd90ed..df3f21c3b6 100644
--- a/lib/arel/select_manager.rb
+++ b/lib/arel/select_manager.rb
@@ -51,11 +51,7 @@ module Arel
end
def from table
- if String === table
- return self if @ctx.froms.any? { |x| x.name.to_s == table }
- end
-
- @ctx.froms << table
+ @ctx.froms = [table]
self
end