app/controllers/adminpanel/roles_controller.rb in adminpanel-2.6.1 vs app/controllers/adminpanel/roles_controller.rb in adminpanel-3.0.0

- old
+ new

@@ -1,10 +1,13 @@ module Adminpanel class RolesController < Adminpanel::ApplicationController private def role_params - params.require(:role).permit(:name, {permission_ids: []}) + params.require(:role).permit( + :name, + { permission_ids: [] } + ) end end end