Include AV::Layouts directly in AM::Base

No need to do this in railtie as AM depends on AV either way
This commit is contained in:
Łukasz Strzałkowski 2013-12-05 00:22:50 +01:00
parent d8888b94b3
commit e064658d64
2 changed files with 2 additions and 6 deletions

View File

@ -373,6 +373,8 @@ module ActionMailer
include AbstractController::AssetPaths
include AbstractController::Callbacks
include ActionView::Layouts
PROTECTED_IVARS = AbstractController::Rendering::DEFAULT_PROTECTED_INSTANCE_VARIABLES + [:@_action_has_layout]
def _protected_ivars # :nodoc:

View File

@ -42,12 +42,6 @@ module ActionView
end
end
initializer "action_view.setup_action_mailer", before: :add_view_paths do |app|
ActiveSupport.on_load(:action_mailer) do
ActionMailer::Base.send(:include, ActionView::Layouts)
end
end
rake_tasks do
load "action_view/tasks/dependencies.rake"
end