active_record-annotate icon indicating copy to clipboard operation
active_record-annotate copied to clipboard

Select from all possible load paths

Open Morozzzko opened this issue 6 years ago • 2 comments

Addresses #20

Background: I'm extending Rails load paths to load models from directories other than app. It wasn't possible to annotate models outside the default app/models directory, so I've implemented it

Unfortunately, I have absolutely no idea how to test it without a running Rails application, so I just manually tested it with my application and let it be

If you have any tips on how to test those things, it would be great

Morozzzko avatar Apr 23 '19 08:04 Morozzzko

Found another issue there. ApplicationRecord models do get annotated despite everything.

Also, found a bug:

If you have a model inside a module, the plugin will ignore the module name. Gonna fix it soon

Morozzzko avatar Apr 24 '19 15:04 Morozzzko

Woops, sorry. That was just a misconfiguration on my side. However, the new patch would still be helpful, I believe

Morozzzko avatar Apr 24 '19 15:04 Morozzzko