Sha256: f87543f074fa127cb425bd32bc2a5d2624df68fa59df131aa836abe0aa859e50

Contents?: true

Size: 371 Bytes

Versions: 12

Compression:

Stored size: 371 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.update_and_notify! user_params.except([:email, :permissions, :uid])
      render json: @user.to_resource_h
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
mumuki-laboratory-8.6.1 app/controllers/api/users_controller.rb
mumuki-laboratory-8.6.0 app/controllers/api/users_controller.rb
mumuki-laboratory-8.5.0 app/controllers/api/users_controller.rb
mumuki-laboratory-8.4.0 app/controllers/api/users_controller.rb
mumuki-laboratory-8.3.0 app/controllers/api/users_controller.rb
mumuki-laboratory-8.2.1 app/controllers/api/users_controller.rb
mumuki-laboratory-8.2.0 app/controllers/api/users_controller.rb
mumuki-laboratory-8.1.3 app/controllers/api/users_controller.rb
mumuki-laboratory-8.1.2 app/controllers/api/users_controller.rb
mumuki-laboratory-8.1.1 app/controllers/api/users_controller.rb
mumuki-laboratory-8.1.0 app/controllers/api/users_controller.rb
mumuki-laboratory-8.0.0 app/controllers/api/users_controller.rb