app/controllers/symphonia/users_controller.rb in symphonia-3.0.3 vs app/controllers/symphonia/users_controller.rb in symphonia-3.1.0
- old
+ new
@@ -1,8 +1,8 @@
module Symphonia
class UsersController < ApplicationController
- include Swagger::Blocks
+ include ::Swagger::Blocks
swagger_path '/admin/users/{id}.json' do
operation :get do
key :summary, 'Find User by ID'
key :description, 'Returns a single user if the user has access'
@@ -163,6 +163,6 @@
allowed = [:login, :first_name, :last_name, :password, :password_confirmation, :email, :mail, preference_ids: []]
allowed.concat(%i[admin role_id]) if Symphonia::User.current.admin?
params.require(:user).permit(allowed)
end
end
-end
\ No newline at end of file
+end