Flowdock

Notes posted by tpo

RSS feed
April 14, 2011
0 thanks

logging before filters

If you need to track and log which before filters are called for the purpose of debugging your app/before_filters. Then here’s a suggestion, how this could be accomplished:

http://stackoverflow.com/questions/4951902/how-to-log-rails-controller-filters-during-rspec-controller-tests/5660475#5660475

January 6, 2011
0 thanks

Adding initialization parameters for the relevant cache store

To configure caching of f.ex. a :mem_cache_store you can pass additional parameters just after the cache type symbol:

ActionController::Base.cache_store = \
  :mem_cache_store, 'a.example.org:11211', 'b.example.org:11211'

all parameters after the cache type symbol will be passed on to the corresponding cache store constructor.

September 17, 2010
0 thanks