You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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, likeDir.glob("#{path_to_engine_rpc_controllers}/**/*.rb").each { |f| require f }
. Doing that means losing all the benefits ofcontrollers_path
, like hot reloading. Ifcontrollers_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.The text was updated successfully, but these errors were encountered: