Skip to content

Commit

Permalink
Fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Marc Altmann committed Feb 5, 2016
1 parent a0baf91 commit f4b92e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/controllers/registrations_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ def new
end

def create
if params[:user][:voluntary_contribution] != ''
super
if resource.valid? && resource.voluntary_contribution.present?
RegistrationsMailer.voluntary_contribution_email(params[:user][:email],
params[:user][:voluntary_contribution].to_i).deliver
end
super
end

def edit
Expand Down

0 comments on commit f4b92e4

Please sign in to comment.