Skip to content

url_for throws error in ActionMailer #3

@kellym

Description

@kellym

Since ssl_requirement overrides the default url_for, it affects ActionMailer too. @request isn't defined in ActionMailer, so line 39 of url_for.rb throws an error. I changed it to the following:

if !(/^https/ =~ (options[:protocol] || (@request.nil? ? '' : @request.protocol) ))

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions