We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The idea is to pass an option to modular_routes helper that will overwrite the default controller method name call.
modular_routes
call
An example of that could be:
# routes.rb modular_routes controller_method: :execute do resources :books, only: :index end # controllers/books/index.rb module Books class IndexController def execute # ... end end end
The text was updated successfully, but these errors were encountered:
Hey, thanks for this great gem
Current method call is also leaked to action method.
action
Can we have action method name same as it was in original controllers ? It will be easier to refactor old projects
class IndexController def index end end
Or can we change action value to return expected value instead of call
class IndexController def call action # => I expect this will be 'index' end end
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
The idea is to pass an option to
modular_routes
helper that will overwrite the default controller method namecall
.An example of that could be:
The text was updated successfully, but these errors were encountered: