Created
June 27, 2011 16:43
-
-
Save jonpaul/1049249 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def dealerimport_notification(contact, user) | |
@contact = contact | |
@user = user | |
if @contact.(params[:provider]) == 'CarForSale.com' | |
mail( | |
:to => '[email protected]', | |
:from => @user.email, | |
:subject => 'A New Listings Import Request has been made for CarForSale.' | |
) | |
elsif @contact.(params[:provider]) == 'CarThink.com' | |
mail( | |
:to => '[email protected]', | |
:from => @user.email, | |
:subject => 'A New Listings Import Request has been made for CarThink.' | |
) | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment