You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unable to annotate app/models/ab/thing.rb: cannot load a model from app/models/ab/thing.rb
Unable to annotate app/models/ab.rb: Unable to autoload constant Ab, expected /Users/anthonys/TestApp/app/models/ab.rb to define it
Nothing to annotate.
Hacking the source code and changing rescue to rescue LoadError in get_loaded_model seems to fix it (not sure if it will break anything else though):
Unable to annotate app/models/ab.rb: cannot load a model from app/models/ab.rb
Annotated (1): AB::Thing
(It's basically caused by the ambiguity between camelize and underscore with multiple uppercase letters.)
The text was updated successfully, but these errors were encountered:
I have an app with a model
AB::Thing
(rails 4.2.3):Trying to annotate:
Output:
Hacking the source code and changing
rescue
torescue LoadError
inget_loaded_model
seems to fix it (not sure if it will break anything else though):(It's basically caused by the ambiguity between camelize and underscore with multiple uppercase letters.)
The text was updated successfully, but these errors were encountered: