Skip to content

Commit

Permalink
send confirmation email after create
Browse files Browse the repository at this point in the history
  • Loading branch information
Panioglo authored and Chocksy committed Dec 2, 2015
1 parent 752eef0 commit c013b28
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/models/member.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,9 @@ class Member < ActiveRecord::Base
attr_accessor :confirm_success_url

before_create :skip_confirmation!
after_create :send_confirmation_email

def send_confirmation_email
self.send_confirmation_instructions
end
end

0 comments on commit c013b28

Please sign in to comment.