Created
February 17, 2017 07:15
-
-
Save 3014zhangshuo/2ace32cc5d7ccb75fd0cc080bbaac404 to your computer and use it in GitHub Desktop.
application_controllers
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def update_user_first_resume_name_resume | |
if current_user.present? && current_user.resumes.last.present? | |
resume = current_user.resumes.last | |
a = resume.resume_user_first_name | |
b = resume.resume_user_last_name | |
params[:name] = a += b | |
resume.name_resume = params[:name] | |
resume.save! | |
end | |
end | |
def sent_confirm_email | |
if current_user.present? && current_user.confirmation_token.nil? | |
Devise::Mailer.confirmation_instructions(current_user).deliver | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment