Skip to content

Autoload autoloaded ActiveModel constants #3

@bensheldon

Description

@bensheldon

Nice library! In reviewing it, I noticed that you require ActiveModel constants that are autoloaded by Rails. This will slow down an application's development boot because it's loading more files than necessary.

Instead, you could structure this project like a Rails Engine and move hyper_active_form/base.rb into app/ in your gem, which will result in it being automatically autoloaded.

Happy to chat more or help.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions