diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-12-08 15:10:47 -0200 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-12-08 15:10:47 -0200 |
commit | c8284c8025dd63c30bdb9c905ef725a1a13160a8 (patch) | |
tree | 7e8b6ec5210dba7f95048eee475096f3b85584c9 /actionmailer/lib | |
parent | 3d06f77ee6e95b467a66bc8c60ad19058ab3e6ba (diff) | |
parent | ccc3ddb7762bae0df7e2f8d643b19b6a4769d5be (diff) | |
download | rails-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/lib')
-rw-r--r-- | actionmailer/lib/action_mailer/railtie.rb | 2 |
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 |