aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel/table.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/arel/table.rb')
-rw-r--r--lib/arel/table.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/arel/table.rb b/lib/arel/table.rb
index 58e0c46959..efdc34ed94 100644
--- a/lib/arel/table.rb
+++ b/lib/arel/table.rb
@@ -73,12 +73,12 @@ module Arel
def columns
@columns ||= @engine.connection.columns(@name, "#{@name} Columns").map do |column|
- Attributes.for(column).new self, column.name, column
+ Attributes.for(column).new self, column.name.to_sym, column
end
end
def [] name
- name = name.to_s
+ name = name.to_sym
columns.find { |column| column.name == name }
end
end