diff options
author | Andrew White <andyw@pixeltrix.co.uk> | 2013-12-16 05:52:58 +0000 |
---|---|---|
committer | Andrew White <andyw@pixeltrix.co.uk> | 2013-12-17 03:58:35 +0000 |
commit | d6dec7fcb6b8fddf8c170182d4fe64ecfc7b2261 (patch) | |
tree | c5f0fd5fccf3556fbdf4d2411fffc80896b529b9 /railties/lib/rails/application | |
parent | 1602a70fb450aba9b5e5befe4c7bfc3344471a06 (diff) | |
download | rails-d6dec7fcb6b8fddf8c170182d4fe64ecfc7b2261.tar.gz rails-d6dec7fcb6b8fddf8c170182d4fe64ecfc7b2261.tar.bz2 rails-d6dec7fcb6b8fddf8c170182d4fe64ecfc7b2261.zip |
Add mailer previews feature based on mail_view gem
Diffstat (limited to 'railties/lib/rails/application')
-rw-r--r-- | railties/lib/rails/application/finisher.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/railties/lib/rails/application/finisher.rb b/railties/lib/rails/application/finisher.rb index 7a1bb1e25c..5b8509b2e9 100644 --- a/railties/lib/rails/application/finisher.rb +++ b/railties/lib/rails/application/finisher.rb @@ -22,6 +22,8 @@ module Rails initializer :add_builtin_route do |app| if Rails.env.development? app.routes.append do + get '/rails/mailers' => "rails/mailers#index" + get '/rails/mailers/*path' => "rails/mailers#preview" get '/rails/info/properties' => "rails/info#properties" get '/rails/info/routes' => "rails/info#routes" get '/rails/info' => "rails/info#index" |