Sha256: 576e51a73942a9d7e6aa767449cbd1cb64335e8909c7847fc66f9571316a2786
Contents?: true
Size: 690 Bytes
Versions: 1
Compression:
Stored size: 690 Bytes
Contents
require_dependency "sc_core/application_controller" module ScCore class UsersController < ApplicationController before_action :set_user, only: [:show, :edit, :update, :destroy] # for cancancan load_and_authorize_resource def index end def new end def show end def edit end def create end def update end def destroy end private def set_user @user = ScCore::User .accessible_by(current_ability) .find(params([:id])) end def user_params params[:user].permit(:id, :email, :name, :password, :password_confirmation) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sc_core-0.0.7 | app/controllers/sc_core/users_controller.rb |