1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

mounted helpers should be included in ActionMailer

This commit is contained in:
Piotr Sarnacki 2010-07-30 08:04:16 +02:00
parent 2734d3819f
commit 8fdeff0fa5
2 changed files with 3 additions and 1 deletions

View file

@ -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
end

View file

@ -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