mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
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:
parent
d8888b94b3
commit
e064658d64
2 changed files with 2 additions and 6 deletions
|
@ -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:
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue