diff options
author | Andrew White <andyw@pixeltrix.co.uk> | 2013-04-24 15:03:03 +0100 |
---|---|---|
committer | Andrew White <andyw@pixeltrix.co.uk> | 2013-04-24 15:07:39 +0100 |
commit | 2a8994122588a2bafb8cf052f2ca1a49a2b758d6 (patch) | |
tree | 89b366ff107c0ba025332be1d91b3f8c23330139 /activesupport/test/multibyte_chars_test.rb | |
parent | 07e489c9a2b1a4c359a8fc494c2e7b4af17a0e37 (diff) | |
download | rails-2a8994122588a2bafb8cf052f2ca1a49a2b758d6.tar.gz rails-2a8994122588a2bafb8cf052f2ca1a49a2b758d6.tar.bz2 rails-2a8994122588a2bafb8cf052f2ca1a49a2b758d6.zip |
Lookup the class at runtime, not when the association is built
Trying to lookup the parent class when the association is being built
runs the risk of generating uninitialized constant errors because
classes haven't been fully defined yet. To work around this we look up
the class at runtime through the `association` method.
Fixes #10197.
Diffstat (limited to 'activesupport/test/multibyte_chars_test.rb')
0 files changed, 0 insertions, 0 deletions