diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2013-10-09 16:09:59 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2013-10-09 16:09:59 -0700 |
commit | 729d3c05998ecd9e18e4d1e83cd14e5b609bd7f5 (patch) | |
tree | 0acbc6a56ff0f60062af7532e75bb09f406039b0 /activerecord | |
parent | b64d64a648309226eda328cf0356893d9a8eae97 (diff) | |
download | rails-729d3c05998ecd9e18e4d1e83cd14e5b609bd7f5.tar.gz rails-729d3c05998ecd9e18e4d1e83cd14e5b609bd7f5.tar.bz2 rails-729d3c05998ecd9e18e4d1e83cd14e5b609bd7f5.zip |
no need to to_sym
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/lib/active_record/inheritance.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/inheritance.rb b/activerecord/lib/active_record/inheritance.rb index e826762def..7e1e120288 100644 --- a/activerecord/lib/active_record/inheritance.rb +++ b/activerecord/lib/active_record/inheritance.rb @@ -160,7 +160,7 @@ module ActiveRecord end def type_condition(table = arel_table) - sti_column = table[inheritance_column.to_sym] + sti_column = table[inheritance_column] sti_names = ([self] + descendants).map { |model| model.sti_name } sti_column.in(sti_names) |