Sha256: fd6dc789862533c750778b67ee76ce863f79229c64ac2451b57b9d2ec7d85a79

Contents?: true

Size: 344 Bytes

Versions: 2

Compression:

Stored size: 344 Bytes

Contents

module Adminpanel
  class UsersController < Adminpanel::ApplicationController
    # authorize_resource :class => false
    load_and_authorize_resource

  private
    def user_params
      params.require(:user).permit(
        :email,
        :name,
        :password,
        :password_confirmation,
        :group_id
      )
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
adminpanel-2.0.1 app/controllers/adminpanel/users_controller.rb
adminpanel-2.0.0 app/controllers/adminpanel/users_controller.rb