diff options
author | Carl Lerche & Yehuda Katz <wycats@gmail.com> | 2009-04-14 17:22:51 -0700 |
---|---|---|
committer | Carl Lerche & Yehuda Katz <wycats@gmail.com> | 2009-04-14 18:32:31 -0700 |
commit | 3c1187699a80e0c4a003f5693389595cd644390f (patch) | |
tree | 3fc026e57412f4d145d5df314b4c6ce468ab84c1 /actionpack/lib/action_view/paths.rb | |
parent | 109a3876f09cb6b51a6da4d517bd6e3ea30380da (diff) | |
download | rails-3c1187699a80e0c4a003f5693389595cd644390f.tar.gz rails-3c1187699a80e0c4a003f5693389595cd644390f.tar.bz2 rails-3c1187699a80e0c4a003f5693389595cd644390f.zip |
Makes rails-dev-boost work again
Diffstat (limited to 'actionpack/lib/action_view/paths.rb')
-rw-r--r-- | actionpack/lib/action_view/paths.rb | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/actionpack/lib/action_view/paths.rb b/actionpack/lib/action_view/paths.rb index b6bb9942ee..1d0279889c 100644 --- a/actionpack/lib/action_view/paths.rb +++ b/actionpack/lib/action_view/paths.rb @@ -2,11 +2,8 @@ module ActionView #:nodoc: class PathSet < Array #:nodoc: def self.type_cast(obj) if obj.is_a?(String) - if !Object.const_defined?(:Rails) || Rails.configuration.cache_classes - Template::EagerPath.new(obj) - else - Template::Path.new(obj) - end + cache = !Object.const_defined?(:Rails) || Rails.configuration.cache_classes + Template::FileSystemPath.new(obj, :cache => cache) else obj end |