Sha256: 6f5fc4c83243b54d0398f08bebdbdeaa10151423098350ad4975c82741945bc9

Contents?: true

Size: 389 Bytes

Versions: 75

Compression:

Stored size: 389 Bytes

Contents

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

    def create
      @user.save!
      @user.notify!
      render json: @user.to_resource_h
    end

    def update
      @user.update! user_params.except([:email, :permissions, :uid])
      @user.notify!
      render json: @user.to_resource_h
    end
  end
end

Version data entries

75 entries across 75 versions & 1 rubygems

Version Path
mumuki-laboratory-7.12.3 app/controllers/api/users_controller.rb
mumuki-laboratory-7.12.1 app/controllers/api/users_controller.rb
mumuki-laboratory-7.12.0 app/controllers/api/users_controller.rb
mumuki-laboratory-7.11.1 app/controllers/api/users_controller.rb
mumuki-laboratory-7.11.0 app/controllers/api/users_controller.rb
mumuki-laboratory-7.10.5 app/controllers/api/users_controller.rb
mumuki-laboratory-7.10.4 app/controllers/api/users_controller.rb
mumuki-laboratory-7.10.3 app/controllers/api/users_controller.rb
mumuki-laboratory-7.10.2 app/controllers/api/users_controller.rb
mumuki-laboratory-7.10.1 app/controllers/api/users_controller.rb
mumuki-laboratory-7.10.0 app/controllers/api/users_controller.rb
mumuki-laboratory-7.9.2 app/controllers/api/users_controller.rb
mumuki-laboratory-7.9.1 app/controllers/api/users_controller.rb
mumuki-laboratory-7.9.0 app/controllers/api/users_controller.rb
mumuki-laboratory-7.7.6 app/controllers/api/users_controller.rb
mumuki-laboratory-7.7.5 app/controllers/api/users_controller.rb
mumuki-laboratory-7.7.4 app/controllers/api/users_controller.rb
mumuki-laboratory-7.8.0 app/controllers/api/users_controller.rb
mumuki-laboratory-7.7.3 app/controllers/api/users_controller.rb
mumuki-laboratory-7.7.2 app/controllers/api/users_controller.rb