Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Remove hard require to ActionView from ActionMailer

  • Loading branch information...
commit e868441896b17ec1ae1a3b7640ff8b302c31a983 1 parent 6c7d895
@strzalek strzalek authored
View
1  actionmailer/lib/action_mailer.rb
@@ -22,7 +22,6 @@
#++
require 'abstract_controller'
-require 'action_view'
require 'action_mailer/version'
# Common Active Support usage in Action Mailer
View
1  actionmailer/lib/action_mailer/base.rb
@@ -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
1  actionmailer/test/abstract_unit.rb
@@ -14,6 +14,7 @@
require 'mail'
# Emulate AV railtie
+require 'action_view'
ActionMailer::Base.send(:include, ActionView::Layouts)
# Show backtraces for deprecated behavior for quicker cleanup.
Please sign in to comment.
Something went wrong with that request. Please try again.