diff options
Diffstat (limited to 'lib/arel/algebra/attributes/attribute.rb')
-rw-r--r-- | lib/arel/algebra/attributes/attribute.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/arel/algebra/attributes/attribute.rb b/lib/arel/algebra/attributes/attribute.rb index 317b7e79f1..351e553877 100644 --- a/lib/arel/algebra/attributes/attribute.rb +++ b/lib/arel/algebra/attributes/attribute.rb @@ -6,7 +6,10 @@ module Arel attr_reader :relation, :name, :alias, :ancestor def initialize(relation, name, options = {}) - @relation, @name, @alias, @ancestor = relation, name, options[:alias], options[:ancestor] + @relation = relation # this is actually a table (I think) + @name = name + @alias = options[:alias] + @ancestor = options[:ancestor] end def engine |