Sha256: ee497c3432ec6745812bd4ae6d0954addfe78c99b50a05a93790a3982006e176

Contents?: true

Size: 411 Bytes

Versions: 46

Compression:

Stored size: 411 Bytes

Contents

module Api
  class UsersController < BaseController
    include UsersControllerTemplate
    before_action :authorize_janitor!

    def create
      @user.save_and_notify!
      render json: @user.to_resource_h
    end

    def update
      @user.assign_attributes user_name_params
      @user.verify_name!
      render json: @user.to_resource_h
    end

    def authorization_slug
      '_/_'
    end
  end
end

Version data entries

46 entries across 46 versions & 1 rubygems

Version Path
mumuki-laboratory-9.23.0 app/controllers/api/users_controller.rb
mumuki-laboratory-9.22.0 app/controllers/api/users_controller.rb
mumuki-laboratory-9.21.0 app/controllers/api/users_controller.rb
mumuki-laboratory-9.20.1 app/controllers/api/users_controller.rb
mumuki-laboratory-9.20.0 app/controllers/api/users_controller.rb
mumuki-laboratory-9.19.0 app/controllers/api/users_controller.rb
mumuki-laboratory-9.18.1 app/controllers/api/users_controller.rb
mumuki-laboratory-9.18.0 app/controllers/api/users_controller.rb
mumuki-laboratory-9.17.0 app/controllers/api/users_controller.rb
mumuki-laboratory-9.16.0 app/controllers/api/users_controller.rb
mumuki-laboratory-9.15.0 app/controllers/api/users_controller.rb
mumuki-laboratory-9.14.1 app/controllers/api/users_controller.rb
mumuki-laboratory-9.14.0 app/controllers/api/users_controller.rb
mumuki-laboratory-9.13.2 app/controllers/api/users_controller.rb
mumuki-laboratory-9.13.1 app/controllers/api/users_controller.rb
mumuki-laboratory-9.13.0 app/controllers/api/users_controller.rb
mumuki-laboratory-9.12.1 app/controllers/api/users_controller.rb
mumuki-laboratory-9.12.0 app/controllers/api/users_controller.rb
mumuki-laboratory-9.11.0 app/controllers/api/users_controller.rb
mumuki-laboratory-9.10.0 app/controllers/api/users_controller.rb