lib/generators/redde/layout/templates/controllers/managers_controller.rb in redde-0.1.11 vs lib/generators/redde/layout/templates/controllers/managers_controller.rb in redde-0.1.12
- old
+ new
@@ -25,6 +25,12 @@
def destroy
@manager = Manager.find(params[:id])
@manager.destroy if current_manager.id != @manager.id
redirect_to [:admin, :managers], alert: 'Администратор удален'
end
+
+ private
+
+ def manager_params
+ params[:manager].permit!
+ end
end