Skip to content

Put configuration in an initializer #345

Closed
@dv

Description

@dv

I like to keep my configuration as separated into relevant files as possible, that's why I would love to be able to have an /config/initializers/react.rb file containing the react-rails configuration options.

However, due to the asset_paths being added in the config.before_initialize hook of the railtie the addon option is ignored if it's set in an initializer instead of in application.rb.

Is it possible to move this asset path generation to the after_initialize hook, like the other stuff? I'm assuming it's not since you made a deliberate split of what goes into before and after, but I figured I'd make sure there is a reason before I start spending time maybe doing a PR to fix it :-)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions