From 98fc25991137ee09b6800578117f8c1c322680f2 Mon Sep 17 00:00:00 2001 From: Sean Griffin Date: Sat, 29 Nov 2014 17:22:17 -0700 Subject: 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. --- lib/arel/nodes/table_alias.rb | 4 ---- 1 file changed, 4 deletions(-) (limited to 'lib/arel/nodes') 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 -- cgit v1.2.3