aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel
diff options
context:
space:
mode:
Diffstat (limited to 'lib/arel')
-rw-r--r--lib/arel/table.rb7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/arel/table.rb b/lib/arel/table.rb
index 4c0404b492..1b37a3b66b 100644
--- a/lib/arel/table.rb
+++ b/lib/arel/table.rb
@@ -6,9 +6,10 @@ module Arel
attr_reader :name, :engine
def initialize name, engine = Table.engine
- @name = name
- @engine = engine
- @columns = nil
+ @name = name
+ @engine = engine
+ @engine = engine[:engine] if Hash === engine
+ @columns = nil
end
def tm