diff options
Diffstat (limited to 'lib/active_relation/relations/table.rb')
-rw-r--r-- | lib/active_relation/relations/table.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/active_relation/relations/table.rb b/lib/active_relation/relations/table.rb index 38f540cc52..d642851687 100644 --- a/lib/active_relation/relations/table.rb +++ b/lib/active_relation/relations/table.rb @@ -23,7 +23,7 @@ module ActiveRelation private def attributes_by_name @attributes_by_name ||= connection.columns(table, "#{table} Columns").inject({}) do |attributes_by_name, column| - attributes_by_name.merge(column.name => ActiveRelation::Primitives::Attribute.new(self, column.name.to_sym)) + attributes_by_name.merge(column.name => Primitives::Attribute.new(self, column.name.to_sym)) end end |