mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
mounted helpers should be included in ActionMailer
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user