aboutsummaryrefslogtreecommitdiffstats
path: root/ci
diff options
context:
space:
mode:
authorAndrew White <andyw@pixeltrix.co.uk>2013-04-24 15:03:03 +0100
committerAndrew White <andyw@pixeltrix.co.uk>2013-04-24 15:07:39 +0100
commit2a8994122588a2bafb8cf052f2ca1a49a2b758d6 (patch)
tree89b366ff107c0ba025332be1d91b3f8c23330139 /ci
parent07e489c9a2b1a4c359a8fc494c2e7b4af17a0e37 (diff)
downloadrails-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 'ci')
0 files changed, 0 insertions, 0 deletions