Skip to content

"requires" option is not honoured from the rake task #738

Open
@pnomolos

Description

@pnomolos

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions