lib/ehcache/rails/ehcache_rails_common.rb in jruby-ehcache-rails3-1.1.1 vs lib/ehcache/rails/ehcache_rails_common.rb in jruby-ehcache-rails3-1.1.2
- old
+ new
@@ -9,15 +9,10 @@
module Ehcache
# Mixin module providing facilities for the Rails 2 and Rails 3 Cache::Store
# implementations.
module Rails
- RAILS_CONFIG_DIR =
- if defined?(::Rails)
- File.join(::Rails.root.to_s, 'config')
- elsif defined?(RAILS_ROOT)
- File.join(RAILS_ROOT, 'config')
- end
+ RAILS_CONFIG_DIR = File.join(RAILS_ROOT, 'config')
DEFAULT_RAILS_CACHE_NAME = 'rails_cache'
attr_reader :cache_manager