app/controllers/spina/admin/users_controller.rb in spina-0.8.3 vs app/controllers/spina/admin/users_controller.rb in spina-0.9.0
- old
+ new
@@ -1,10 +1,10 @@
module Spina
module Admin
class UsersController < AdminController
- before_filter :set_breadcrumbs
-
+ before_action :set_breadcrumbs
+
authorize_resource class: User
layout "spina/admin/settings"
def index
@@ -56,9 +56,9 @@
end
def user_params
params.require(:user).permit(:admin, :email, :name, :password_digest, :password, :password_confirmation, :last_logged_in)
end
-
+
end
end
end