Skip to content

Commit

Permalink
mounted helpers should be included in ActionMailer
Browse files Browse the repository at this point in the history
  • Loading branch information
drogus committed Sep 3, 2010
1 parent 2734d38 commit 8fdeff0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion actionmailer/lib/action_mailer/railtie.rb
Expand Up @@ -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
1 change: 1 addition & 0 deletions railties/test/application/initializers/frameworks_test.rb
Expand Up @@ -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

Expand Down

0 comments on commit 8fdeff0

Please sign in to comment.