Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

replace code #3

Merged
merged 1 commit into from
Oct 17, 2011
Merged

replace code #3

merged 1 commit into from
Oct 17, 2011

Conversation

rosalin
Copy link
Contributor

@rosalin rosalin commented Oct 16, 2011

replace this:
ToFriendMailer.deliver_mail_to_friend(object,@mail_to_friend)

to:
ToFriendMailer.mail_to_friend(object,@mail_to_friend).deliver

worked for me! thanks

@radar
Copy link
Contributor

radar commented Oct 16, 2011

Was this not working before? I thought the deliver_* syntax was a shorthand for this. Could you explain what wasn't working before so we could duplicate the issue?

@rosalin
Copy link
Contributor Author

rosalin commented Oct 16, 2011

this error message:

NoMethodError in EmailSenderController#send_mail
undefined method `deliver_mail_to_friend' for ToFriendMailer:Class

@JDutil
Copy link
Member

JDutil commented Oct 17, 2011

With Rails 3.x the deliver_* is deprecated in favor of *.deliver

runlevel5 pushed a commit that referenced this pull request Oct 17, 2011
Replaced deliver_mail_to_friend with mail_to_friend.deliver
@runlevel5 runlevel5 merged commit 500ace8 into spree-contrib:master Oct 17, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants