aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@gmail.com>2010-01-22 01:10:31 +0100
committerJosé Valim <jose.valim@gmail.com>2010-01-22 01:10:31 +0100
commit02c5137eadbb3530033d919b7aebeb6f4f389b83 (patch)
tree06a0a7c1431d73e9092d96f99e0718d7dda4fe80 /actionpack
parent7fcf8590e788cef8b64cc266f75931c418902ca9 (diff)
downloadrails-02c5137eadbb3530033d919b7aebeb6f4f389b83.tar.gz
rails-02c5137eadbb3530033d919b7aebeb6f4f389b83.tar.bz2
rails-02c5137eadbb3530033d919b7aebeb6f4f389b83.zip
Add view paths to Engine setup.
Diffstat (limited to 'actionpack')
-rw-r--r--actionpack/lib/action_controller/railtie.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/actionpack/lib/action_controller/railtie.rb b/actionpack/lib/action_controller/railtie.rb
index ee94bf8364..621dd9373c 100644
--- a/actionpack/lib/action_controller/railtie.rb
+++ b/actionpack/lib/action_controller/railtie.rb
@@ -29,8 +29,7 @@ module ActionController
# set to use Configuration#view_path.
initializer "action_controller.initialize_framework_views" do |app|
# TODO: this should be combined with the logic for default config.action_controller.view_paths
- view_path = ActionView::PathSet.type_cast(app.config.view_path, app.config.cache_classes)
- ActionController::Base.view_paths = view_path if ActionController::Base.view_paths.blank?
+ ActionController::Base.view_paths = [] if ActionController::Base.view_paths.blank?
end
end