Sha256: 5982dedc2096fd7244c457bdb0a3d639586c12034d0d0bc4deae2e5d86944925
Contents?: true
Size: 487 Bytes
Versions: 3
Compression:
Stored size: 487 Bytes
Contents
# frozen_string_literal: true class EmailsController < ApplicationController def edit; end def update if current_user.update(user_params) redirect_to update_redirect_path, notice: t(".notice") else render :edit, status: :unprocessable_entity end end private def user_params params.require(:user).permit(:email) end def update_redirect_path current_user.needs_email_verification? ? new_email_verification_path : dashboard_path end end
Version data entries
3 entries across 3 versions & 1 rubygems