We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
rails/actionmailer/lib/action_mailer/railtie.rb
Line 44 in b47d8de
I think it should be prepend and not append.
prepend
append
If application has a globbing route like
get '*path', to: 'foo#bar'
preview routes become inaccessible
The text was updated successfully, but these errors were encountered:
Perhaps the correct fix would be:
if options.show_previews app.routes.append do get '/rails/mailers' => "rails/mailers#index" end app.routes.prepend do get '/rails/mailers/*path' => "rails/mailers#preview" end end
But that feels wrong too.
Sorry, something went wrong.
Anything you add with append will not be accessible if app has globing route. *path basically means everything. Nothing gets past this.
*path
I made pull request with the fix there.
Successfully merging a pull request may close this issue.
rails/actionmailer/lib/action_mailer/railtie.rb
Line 44 in b47d8de
I think it should be
prepend
and notappend
.If application has a globbing route like
preview routes become inaccessible
The text was updated successfully, but these errors were encountered: