annotate_models
annotate_models copied to clipboard
"requires" option is not honoured from the rake task
Any files specified in the "requires" option are only required if the annotate command is run directly.
In reading through the code, it's due to load_requires only being called in Annotate.eager_load, which is only called via the annotate binstub, as far as I can tell. It's also only used in a subset of cases - where Annotate.include_models? evaluates to true.
Version
- annotate version - 3.0.3
- rails version - 4.2.11.1
- ruby version - 2.3.7p456
@pnomolos can you provide more information? How are you using it?
@drwl Hi! Sorry for the delay. I've been trying to use it both via the CLI as well as the integration that runs right after db:migrate. The CLI works to be able to run my custom code, but the db:migrate integration doesn't - all other things the same.
@drwl Are you still looking for more information for this?
@drwl Following up on this. Thank you :)
@pnomolos sorry for the delay. Maintaining this gem wasn't a high priority for me after COVID started to take effect, however I'm back now. I'll try and loop back on this soon. My priority right now is getting PRs merged in.