diff options
author | Prem Sichanugrist <s@sikac.hu> | 2019-06-26 19:33:22 +0900 |
---|---|---|
committer | Prem Sichanugrist <s@sikac.hu> | 2019-07-05 12:38:58 +0900 |
commit | 48c0abb4748c30adeecc17058f0220e87bcbe84a (patch) | |
tree | 4dacd4c3fc841d2037353aef36ea3733ccb61086 /activerecord/test/models/autoloadable/extra_firm.rb | |
parent | fb3ecbf130e141688782bafb7da979bf0ecedf1a (diff) | |
download | rails-48c0abb4748c30adeecc17058f0220e87bcbe84a.tar.gz rails-48c0abb4748c30adeecc17058f0220e87bcbe84a.tar.bz2 rails-48c0abb4748c30adeecc17058f0220e87bcbe84a.zip |
Fix problem with accessing constant proxy subclass
This commit fixes #36313.
After #32065 moved `SourceAnnotationExtractor` into `Rails` module, it
broke the ability to access `SourceAnnotationExtractor::Annotate`
directly as user would get this error:
TypeError: Rails::SourceAnnotationExtractor is not a class/module
This commit fixes the issue by making `DeprecatedConstantProxy` to
inherit from `Module` and then defines `method_missing` and
`const_missing` to retain the previous functionality.
Thank you Matthew Draper for the idea of how to fix the issue!
[Prem Sichanugrist & Matthew Draper]
Diffstat (limited to 'activerecord/test/models/autoloadable/extra_firm.rb')
0 files changed, 0 insertions, 0 deletions