aboutsummaryrefslogtreecommitdiffstats
path: root/actionmailer
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2009-06-04 18:25:03 -0700
committerJeremy Kemper <jeremy@bitsweat.net>2009-06-05 18:27:27 -0700
commita838ba392ea84b125dff01717796958a4491fa7b (patch)
tree17f08aa11522716651fe53f48a51b706285b384c /actionmailer
parentd6e4113c83a9d55be6f2af247da2cecaa855f43b (diff)
downloadrails-a838ba392ea84b125dff01717796958a4491fa7b.tar.gz
rails-a838ba392ea84b125dff01717796958a4491fa7b.tar.bz2
rails-a838ba392ea84b125dff01717796958a4491fa7b.zip
Prefer sibling action_controller
Diffstat (limited to 'actionmailer')
-rw-r--r--actionmailer/lib/action_mailer.rb13
1 files changed, 3 insertions, 10 deletions
diff --git a/actionmailer/lib/action_mailer.rb b/actionmailer/lib/action_mailer.rb
index 02c536c8ad..a427376579 100644
--- a/actionmailer/lib/action_mailer.rb
+++ b/actionmailer/lib/action_mailer.rb
@@ -21,16 +21,9 @@
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#++
-begin
- require 'action_controller'
-rescue LoadError
- actionpack_path = "#{File.dirname(__FILE__)}/../../actionpack/lib"
- if File.directory?(actionpack_path)
- $:.unshift actionpack_path
- require 'action_controller'
- end
-end
-
+actionpack_path = "#{File.dirname(__FILE__)}/../../actionpack/lib"
+$:.unshift(actionpack_path) if File.directory?(actionpack_path)
+require 'action_controller'
require 'action_view'
module ActionMailer