dylanz/ehcache — pull request #2 by elskwid (2011-11-04 06:31:31+00:00)
Title: Improve Rails compatibility

* Use Rails.root with fallback to RAILS_ROOT in Ehcache::Rails
* Default options in #create_cache_manager to empty hash
* Correct call to #super() in Rails 2 EhcacheStore
* Fix EhcacheStore.read to return element value
* Default options in EhcacheStore.write to empty hash

Tried to use Ehcache with Rails 2.3.14 & 3.1.1 and had some problems getting things to work as expected. There were particular issues with the cache implementation under Rails 2 not returning a value and with initialization.

All tests are passing with these changes.