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
If a controller inherits from another controller and uses some action from the super class, rails_best_practice does not recognize the inheritance and says restrict auto-generated routes.
I'm having the same issue for my mountable engine.
module Admin
class UsersController < ApplicationController
def edit
end
def update
end
end
end
# => restrict auto-generated routes users (only: [:edit, :update])
If a controller inherits from another controller and uses some action from the super class, rails_best_practice does not recognize the inheritance and says
restrict auto-generated routes
.Example
And the parent class
This will output
restrict auto-generated routes parents/childs (only: [:update, :destroy])
The text was updated successfully, but these errors were encountered: