aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test/ordered_options_test.rb
diff options
context:
space:
mode:
authorUjjwal Thaakar <ujjwalthaakar@gmail.com>2014-01-14 18:53:45 +0530
committerUjjwal Thaakar <ujjwalthaakar@gmail.com>2014-01-14 18:53:45 +0530
commite8d1d84837a59ef7d73b29b16ee05cd610d30a90 (patch)
treecc13fee530ff0a6045b8a4acb58e9a96e4b818cc /activesupport/test/ordered_options_test.rb
parentb242b2dbe75f0b5e86e2ce9ef7c2c5ee96e17862 (diff)
downloadrails-e8d1d84837a59ef7d73b29b16ee05cd610d30a90.tar.gz
rails-e8d1d84837a59ef7d73b29b16ee05cd610d30a90.tar.bz2
rails-e8d1d84837a59ef7d73b29b16ee05cd610d30a90.zip
Don't try to get the subclass if the inheritance column doesn't exist
The `subclass_from_attrs` method is called even if the column specified by the `inheritance_column` setting doesn't exist. This prevents setting associations via the attributes hash if the association name clashes with the value of the setting, typically `:type`. This worked previously in Rails 3.2.
Diffstat (limited to 'activesupport/test/ordered_options_test.rb')
0 files changed, 0 insertions, 0 deletions