-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Labels
Description
Follow up to #16
Ran into this when generating a controller with a namespace, ex bin/rails g scaffold admin/projects. I ran into a small issue while working with the accessible_by_user and my workaround is creating a minor inconvenient 🐛 .
Running the command will render:
def index
@admin_projects = Admin_project.accessible_by_user(current_user).all
end
...
def set_admin_project
@admin_project = Admin_project.accessible_by_user(current_user).find(params[:id])
endWhile everything else on the controller is of this format:
def new
@admin_project = Admin::Project.new
end