1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Remove hard require to ActionView from ActionMailer

This commit is contained in:
Łukasz Strzałkowski 2013-07-30 00:50:24 +02:00
parent 6c7d895dda
commit e868441896
3 changed files with 1 additions and 2 deletions

View file

@ -22,7 +22,6 @@
#++
require 'abstract_controller'
require 'action_view'
require 'action_mailer/version'
# Common Active Support usage in Action Mailer

View file

@ -1,5 +1,4 @@
require 'mail'
require 'action_view/base'
require 'action_mailer/collector'
require 'active_support/core_ext/string/inflections'
require 'active_support/core_ext/hash/except'

View file

@ -14,6 +14,7 @@ require 'action_mailer/test_case'
require 'mail'
# Emulate AV railtie
require 'action_view'
ActionMailer::Base.send(:include, ActionView::Layouts)
# Show backtraces for deprecated behavior for quicker cleanup.