Skip to content

Commit

Permalink
fixed follow ajax
Browse files Browse the repository at this point in the history
  • Loading branch information
chrismatthieu committed Oct 8, 2011
1 parent c0119fb commit fa93e95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/follows_controller.rb
Expand Up @@ -77,7 +77,7 @@ def create
if params[:status] == "follow"

# Send welcome email
if @user.email
if @user.email rescue false
@message = "Hi #{@user.username.capitalize}, \n\n #{@current_user.username.capitalize} is now following you on Gospelr! You can follow them back by clicking on this link: http://gospelr.com/#{@current_user.username} \n\nGod Bless, \nGospelr"
Notifier.contact(@user.email, "chris@gospelr.com", @message).deliver
end
Expand Down

0 comments on commit fa93e95

Please sign in to comment.