Skip to content

Support multiple controllers_paths #214

Open
@xanderman

Description

What? Why?

Organizing rpc controllers in a complex project, using Rails Engines or other organization tools, is currently only possible with hacks that require each controller, like Dir.glob("#{path_to_engine_rpc_controllers}/**/*.rb").each { |f| require f }. Doing that means losing all the benefits of controllers_path, like hot reloading. If controllers_path could be a list, Gruf could managing autoloading/reloading the controllers in the engine itself.

Ideally, Gruf.configure would be reentrant so that the engine could add the path in its initializers, but even if it has to be in the top-level initializer that would still be a big step up.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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