aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack
diff options
context:
space:
mode:
authorCarlhuda <carlhuda@engineyard.com>2010-03-02 12:32:31 -0800
committerCarlhuda <carlhuda@engineyard.com>2010-03-02 12:32:31 -0800
commitb01db07a9f009016186da34c4936a9efb2c224c6 (patch)
tree2bdef9121924656ec22741d0c9c60f0dd4be12d4 /actionpack
parent57bae9764e45ad19dff7a879eeb46d1dffc5ca22 (diff)
downloadrails-b01db07a9f009016186da34c4936a9efb2c224c6.tar.gz
rails-b01db07a9f009016186da34c4936a9efb2c224c6.tar.bz2
rails-b01db07a9f009016186da34c4936a9efb2c224c6.zip
Moved initializers for ActionMailer and ActionController into their own railties
Diffstat (limited to 'actionpack')
-rw-r--r--actionpack/lib/action_controller/railtie.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/actionpack/lib/action_controller/railtie.rb b/actionpack/lib/action_controller/railtie.rb
index 07c6b8f2b6..a18b63fb13 100644
--- a/actionpack/lib/action_controller/railtie.rb
+++ b/actionpack/lib/action_controller/railtie.rb
@@ -27,6 +27,11 @@ module ActionController
ActionController::Base.cache_store ||= RAILS_CACHE
end
+ initializer "action_controller.add_view_paths" do |app|
+ views = app.config.paths.app.views.to_a
+ ActionController::Base.prepend_view_path(views)
+ end
+
initializer "action_controller.set_helpers_path" do |app|
ActionController::Base.helpers_path = app.config.paths.app.helpers.to_a
end