aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel/nodes
diff options
context:
space:
mode:
authorSean Griffin <sean@thoughtbot.com>2014-11-29 17:22:17 -0700
committerSean Griffin <sean@thoughtbot.com>2014-11-29 17:22:17 -0700
commit98fc25991137ee09b6800578117f8c1c322680f2 (patch)
tree038381ae4465d6ea9950ecda9ef10822fd3ff9c6 /lib/arel/nodes
parent7508284800f67b4611c767bff9eae7045674b66f (diff)
downloadrails-98fc25991137ee09b6800578117f8c1c322680f2.tar.gz
rails-98fc25991137ee09b6800578117f8c1c322680f2.tar.bz2
rails-98fc25991137ee09b6800578117f8c1c322680f2.zip
Remove `engine` from `TreeManager` and subclasses
This constructor parameter was unused for everything except the convenience methods `to_sql` and `where_sql`. We can pass the engine into those methods directly.
Diffstat (limited to 'lib/arel/nodes')
-rw-r--r--lib/arel/nodes/table_alias.rb4
1 files changed, 0 insertions, 4 deletions
diff --git a/lib/arel/nodes/table_alias.rb b/lib/arel/nodes/table_alias.rb
index ebfcb58e64..b32f057117 100644
--- a/lib/arel/nodes/table_alias.rb
+++ b/lib/arel/nodes/table_alias.rb
@@ -12,10 +12,6 @@ module Arel
def table_name
relation.respond_to?(:name) ? relation.name : name
end
-
- def engine
- relation.engine
- end
end
end
end