diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2013-07-01 16:55:10 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2013-07-01 16:55:10 -0700 |
commit | b9d98597cc3506bb1485f04ffd416e51c0e188bc (patch) | |
tree | c1ca50c837bd3f2501038e94a1ddabf6da1b1c4b /activerecord/lib | |
parent | 9d0a65320f3b505425ced2db22422772e15a5d2e (diff) | |
download | rails-b9d98597cc3506bb1485f04ffd416e51c0e188bc.tar.gz rails-b9d98597cc3506bb1485f04ffd416e51c0e188bc.tar.bz2 rails-b9d98597cc3506bb1485f04ffd416e51c0e188bc.zip |
we don't need to to_s the column
Diffstat (limited to 'activerecord/lib')
-rw-r--r-- | activerecord/lib/active_record/relation/predicate_builder.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/relation/predicate_builder.rb b/activerecord/lib/active_record/relation/predicate_builder.rb index 57b7e8d13d..59a3130939 100644 --- a/activerecord/lib/active_record/relation/predicate_builder.rb +++ b/activerecord/lib/active_record/relation/predicate_builder.rb @@ -7,7 +7,7 @@ module ActiveRecord 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) |