aboutsummaryrefslogtreecommitdiffstats
path: root/actionmailer
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2014-12-08 15:10:47 -0200
committerRafael Mendonça França <rafaelmfranca@gmail.com>2014-12-08 15:10:47 -0200
commitc8284c8025dd63c30bdb9c905ef725a1a13160a8 (patch)
tree7e8b6ec5210dba7f95048eee475096f3b85584c9 /actionmailer
parent3d06f77ee6e95b467a66bc8c60ad19058ab3e6ba (diff)
parentccc3ddb7762bae0df7e2f8d643b19b6a4769d5be (diff)
downloadrails-c8284c8025dd63c30bdb9c905ef725a1a13160a8.tar.gz
rails-c8284c8025dd63c30bdb9c905ef725a1a13160a8.tar.bz2
rails-c8284c8025dd63c30bdb9c905ef725a1a13160a8.zip
Merge pull request #17896 from GBH/globbing_route_mailer_preview
fixing mailer previews for apps with globbing route
Diffstat (limited to 'actionmailer')
-rw-r--r--actionmailer/lib/action_mailer/railtie.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionmailer/lib/action_mailer/railtie.rb b/actionmailer/lib/action_mailer/railtie.rb
index 05a3ac6a21..bebcf4de01 100644
--- a/actionmailer/lib/action_mailer/railtie.rb
+++ b/actionmailer/lib/action_mailer/railtie.rb
@@ -41,7 +41,7 @@ module ActionMailer
options.each { |k,v| send("#{k}=", v) }
if options.show_previews
- app.routes.append do
+ app.routes.prepend do
get '/rails/mailers' => "rails/mailers#index"
get '/rails/mailers/*path' => "rails/mailers#preview"
end