I need to send two different e-mail verification to users that subscribe
to our website.
Basically there is 2 kind of subscriptions :
Beta Tester Program Sign Up
Newsletter
Two type of users within Users table (I use STI) :
BetaTester
Subscriber
I can perfectly make it works for one e-mail verification… the problem
is when I try to send two different.
I think it has to be within the UserObserver :
class UserObserver < ActiveRecord::Observer
def after_create(user)
UserNotifier.deliver_beta_tester_signup_notification_en(user)
UserNotifier.deliver_subscriber_signup_notification_en(user)
end
end
You can see that I am sending the two e-mail verification.
Is it possible to use conditions within this model so I can verify if
user.type = BetaTesters send this, else send that?