Working and specced supplier signup

This commit is contained in:
2013-10-30 15:29:47 +01:00
parent c8fb2ab069
commit 1af153e45f
11 changed files with 90 additions and 5 deletions
+2 -2
View File
@@ -104,12 +104,12 @@ class Supplier
end
# Send confirmation instructions by email
def send_confirmation_instructions
def send_confirmation_instructions(*args)
self.confirmation_token = nil if reconfirmation_required?
@reconfirmation_required = false
@bypass_postpone = true and generate_confirmation_token! if self.confirmation_token.blank?
self.devise_mailer.confirmation_instructions(self).deliver
self.devise_mailer.confirmation_instructions(self, confirmation_token).deliver
end
def find_order(id)