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

Fix some specs #14

Merged
merged 2 commits into from
Jul 24, 2015
Merged

Fix some specs #14

merged 2 commits into from
Jul 24, 2015

Conversation

adammathys
Copy link
Member

No description provided.

Redirect behaviour changed slightly in this PR:
solidusio/solidus#192
@@ -3,13 +3,13 @@ class UserMailer < BaseMailer
def reset_password_instructions(user, token, *args)
@edit_password_reset_url = spree.edit_spree_user_password_url(:reset_password_token => token, :host => Spree::Store.current.url)

mail to: user.email, from: from_address, subject: Spree::Store.current.name + ' ' + I18n.t(:subject, :scope => [:devise, :mailer, :reset_password_instructions])
mail to: user.email, from: from_address(Spree::Store.current), subject: Spree::Store.current.name + ' ' + I18n.t(:subject, :scope => [:devise, :mailer, :reset_password_instructions])
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry to tack improvements into a fix PR, but could we change this to

@store = Spree::Store.current

mail to: user.email, from: from_address(@store), subject: @store.name + ' ' + I18n.t(:subject, :scope => [:devise, :mailer, :reset_password_instructions])

Eventually, we'll want to be able to get the correct store to send this email as, rather than just the default store, this would be a step towards that.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can do.

Not doing so is deprecated. And Adam no-likey deprecation warnings!
@jhawthorn
Copy link
Contributor

👍

1 similar comment
@magnusvk
Copy link
Contributor

👍

magnusvk added a commit that referenced this pull request Jul 24, 2015
@magnusvk magnusvk merged commit fe372f3 into solidusio:master Jul 24, 2015
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.

3 participants