diff options
author | Carl Lerche <carllerche@mac.com> | 2009-10-08 18:12:28 -0700 |
---|---|---|
committer | Carl Lerche <carllerche@mac.com> | 2009-10-08 18:12:28 -0700 |
commit | 992c2db76cd6cd6aa9a6ba3711a6ea1ad8910062 (patch) | |
tree | 83cde462f67aa72eff043e392756ded1ebdf424c /actionpack/lib | |
parent | 5c42157cd83b022d05738c6759e38536f74fc572 (diff) | |
download | rails-992c2db76cd6cd6aa9a6ba3711a6ea1ad8910062.tar.gz rails-992c2db76cd6cd6aa9a6ba3711a6ea1ad8910062.tar.bz2 rails-992c2db76cd6cd6aa9a6ba3711a6ea1ad8910062.zip |
Finish porting over the initializers to the app object and fix all the tests
Diffstat (limited to 'actionpack/lib')
-rw-r--r-- | actionpack/lib/action_controller/metal/session_management.rb | 2 | ||||
-rw-r--r-- | actionpack/lib/action_view/paths.rb | 7 |
2 files changed, 6 insertions, 3 deletions
diff --git a/actionpack/lib/action_controller/metal/session_management.rb b/actionpack/lib/action_controller/metal/session_management.rb index ffce8e1bd1..654aa08cd3 100644 --- a/actionpack/lib/action_controller/metal/session_management.rb +++ b/actionpack/lib/action_controller/metal/session_management.rb @@ -16,7 +16,7 @@ module ActionController #:nodoc: self.session_store = ActiveRecord::SessionStore else @@session_store = store.is_a?(Symbol) ? - Session.const_get(store.to_s.camelize) : + ActionDispatch::Session.const_get(store.to_s.camelize) : store end end diff --git a/actionpack/lib/action_view/paths.rb b/actionpack/lib/action_view/paths.rb index 5524a3219a..23bde61f9c 100644 --- a/actionpack/lib/action_view/paths.rb +++ b/actionpack/lib/action_view/paths.rb @@ -1,8 +1,11 @@ module ActionView #:nodoc: class PathSet < Array #:nodoc: - def self.type_cast(obj) + def self.type_cast(obj, cache = nil) + # TODO: Clean this up if obj.is_a?(String) - cache = !defined?(Rails) || !Rails.respond_to?(:configuration) || Rails.configuration.cache_classes + if cache.nil? + cache = !defined?(Rails) || Rails.application.config.cache_classes + end FileSystemResolverWithFallback.new(obj, :cache => cache) else obj |