Permalink
Browse files

we don't need to to_s the column

  • Loading branch information...
1 parent 9d0a653 commit b9d98597cc3506bb1485f04ffd416e51c0e188bc @tenderlove tenderlove committed Jul 1, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/lib/active_record/relation/predicate_builder.rb
@@ -7,7 +7,7 @@ def self.build_from_hash(klass, attributes, default_table)
table = default_table
if column.is_a?(Symbol) && klass.attribute_alias?(column)
- column = klass.attribute_alias(column.to_s)
+ column = klass.attribute_alias(column)
end
if value.is_a?(Hash)

0 comments on commit b9d9859

Please sign in to comment.