lib/ehcache/rails/ehcache_rails_common.rb in jruby-ehcache-rails2-1.1.0 vs lib/ehcache/rails/ehcache_rails_common.rb in jruby-ehcache-rails2-1.1.1

- old
+ new

@@ -17,11 +17,11 @@ elsif defined?(RAILS_ROOT) File.join(RAILS_ROOT, 'config') end DEFAULT_RAILS_CACHE_NAME = 'rails_cache' - + attr_reader :cache_manager def create_cache_manager(options) config = nil if options[:ehcache_config] @@ -34,10 +34,10 @@ @cache_manager = Ehcache::CacheManager.create(config) end def create_cache(options) create_cache_manager(options) if @cache_manager.nil? - + @cache = @cache_manager.cache(options[:cache_name] || DEFAULT_RAILS_CACHE_NAME) end at_exit do @cache_manager.shutdown if @cache_manager