Created
October 6, 2011 21:17
-
-
Save sahglie/1268701 to your computer and use it in GitHub Desktop.
efts_controller#update_confirm Bug
This file contains 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_confirm | |
@eft = Eft.find_latest_unconfirmed_edit(@user.student_id) | |
@eft || (redirect_to(eft_url) && return) | |
if params[:confirm] | |
@eft.update_attribute(:confirm_flag, true) ##### @eft.updated_at doesn't get updated ##### | |
Notifier.deliver_confirmation_for_student(@eft.email_address) if Rails.env == "production" && session[:admin_uid].nil? | |
audit_notification() | |
redirect_to(completed_eft_url) | |
else | |
@error_message = Eft.confirm_error_msg | |
render('edit_confirm') | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment