aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller/base.rb
diff options
context:
space:
mode:
authorJoshua Peek <josh@joshpeek.com>2008-07-12 15:31:50 -0500
committerJoshua Peek <josh@joshpeek.com>2008-07-12 15:31:50 -0500
commit99cc85bc099a757cdd44e4f5f1be4972ab124e0d (patch)
tree376ed5a7338c0182e9f4d8ebf549059758d38853 /actionpack/lib/action_controller/base.rb
parent73b34e9f75d33dc0709d4ad36c912bdbb8977994 (diff)
downloadrails-99cc85bc099a757cdd44e4f5f1be4972ab124e0d.tar.gz
rails-99cc85bc099a757cdd44e4f5f1be4972ab124e0d.tar.bz2
rails-99cc85bc099a757cdd44e4f5f1be4972ab124e0d.zip
Set config.action_view.warn_cache_misses = true to receive a warning if you perform an action that results in an expensive disk operation that could be cached
Diffstat (limited to 'actionpack/lib/action_controller/base.rb')
-rwxr-xr-xactionpack/lib/action_controller/base.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/lib/action_controller/base.rb b/actionpack/lib/action_controller/base.rb
index 6926941396..df94f78f18 100755
--- a/actionpack/lib/action_controller/base.rb
+++ b/actionpack/lib/action_controller/base.rb
@@ -431,7 +431,7 @@ module ActionController #:nodoc:
end
def view_paths=(value)
- @view_paths = ActionView::PathSet.new(Array(value)) if value
+ @view_paths = ActionView::Base.process_view_paths(value) if value
end
# Adds a view_path to the front of the view_paths array.
@@ -652,7 +652,7 @@ module ActionController #:nodoc:
end
def view_paths=(value)
- @template.view_paths = PathSet.new(value)
+ @template.view_paths = ActionView::Base.process_view_paths(value)
end
# Adds a view_path to the front of the view_paths array.