Skip to content

Commit

Permalink
Removed sending email using delayed job
Browse files Browse the repository at this point in the history
  • Loading branch information
sbansal committed Jan 23, 2012
1 parent eba113f commit 14cc4da
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 2 additions & 1 deletion app/models/user.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ def to_param

private
def send_sign_up_notification
UserMailer.delay(queue: "welcome_email", priority: -1).welcome_email(self.fullname, self.email)
UserMailer.welcome_email(self.fullname, self.email).deliver
# UserMailer.delay(queue: "welcome_email", priority: -1).welcome_email(self.fullname, self.email)
end
end
3 changes: 0 additions & 3 deletions config/environment.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
require 'yaml'
YAML::ENGINE.yamler= 'psych'

# Load the rails application
require File.expand_path('../application', __FILE__)

Expand Down

0 comments on commit 14cc4da

Please sign in to comment.