Permalink
Browse files

mounted helpers should be included in ActionMailer

  • Loading branch information...
1 parent 2734d38 commit 8fdeff0fa5c4ebf01856b0048dd86f7151fd11ba @drogus drogus committed Jul 30, 2010
@@ -19,8 +19,9 @@ class Railtie < Rails::Railtie
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 @@ def notify
require "#{app_path}/config/environment"
assert Foo.method_defined?(:foo_path)
+ assert Foo.method_defined?(:app)
assert_equal ["notify"], Foo.action_methods
end

0 comments on commit 8fdeff0

Please sign in to comment.