diff options
author | Piotr Sarnacki <drogus@gmail.com> | 2010-07-30 08:04:16 +0200 |
---|---|---|
committer | Piotr Sarnacki <drogus@gmail.com> | 2010-09-03 22:59:10 +0200 |
commit | 8fdeff0fa5c4ebf01856b0048dd86f7151fd11ba (patch) | |
tree | 8c6bee8850fd8ff66e7986ddea01fde38c430a0f | |
parent | 2734d3819f4621bf797ea436d267b102deae67f7 (diff) | |
download | rails-8fdeff0fa5c4ebf01856b0048dd86f7151fd11ba.tar.gz rails-8fdeff0fa5c4ebf01856b0048dd86f7151fd11ba.tar.bz2 rails-8fdeff0fa5c4ebf01856b0048dd86f7151fd11ba.zip |
mounted helpers should be included in ActionMailer
-rw-r--r-- | actionmailer/lib/action_mailer/railtie.rb | 3 | ||||
-rw-r--r-- | railties/test/application/initializers/frameworks_test.rb | 1 |
2 files changed, 3 insertions, 1 deletions
diff --git a/actionmailer/lib/action_mailer/railtie.rb b/actionmailer/lib/action_mailer/railtie.rb index ce6d8cc5b5..c888e51b93 100644 --- a/actionmailer/lib/action_mailer/railtie.rb +++ b/actionmailer/lib/action_mailer/railtie.rb @@ -19,8 +19,9 @@ module ActionMailer ActiveSupport.on_load(:action_mailer) do include app.routes.url_helpers + include app.routes.mounted_helpers(:app) options.each { |k,v| send("#{k}=", v) } end end end -end
\ No newline at end of file +end diff --git a/railties/test/application/initializers/frameworks_test.rb b/railties/test/application/initializers/frameworks_test.rb index 4ff10091b1..6e9ceb6ef7 100644 --- a/railties/test/application/initializers/frameworks_test.rb +++ b/railties/test/application/initializers/frameworks_test.rb @@ -61,6 +61,7 @@ module ApplicationTests require "#{app_path}/config/environment" assert Foo.method_defined?(:foo_path) + assert Foo.method_defined?(:app) assert_equal ["notify"], Foo.action_methods end |