Methods
E
U
Instance Public methods
edit()
# File app/controllers/cardboard/users_controller.rb, line 6
def edit
  @user =  cardboard_user
end
update()
# File app/controllers/cardboard/users_controller.rb, line 10
def update
  admin_user_method = Cardboard.user_class.to_s.underscore.gsub(/\//,'_').to_sym
  @user =  cardboard_user
  if params[admin_user_method][:password].blank?
    params[admin_user_method].delete("password")
    params[admin_user_method].delete("password_confirmation")
  end

  if @user.update_attributes(strong_params[admin_user_method])
    request.env['warden'].session_serializer.store(@user, admin_user_method)
    flash[:success] = "User information updated successfully"
    redirect_to user_path
  else
    render :edit
  end
end