Archive for the ‘cache_sweeper’ Category

Rails : Accessing session data in models

October 25th, 2007 by Prateek Dayal View Comments

MVC architecture is good for keeping your design neat but once in a while you hit a road block and this is one such situtation. If you want to log actions/events in your code and track changes to models, you would want to do that in the activerecord callback hooks like after_save and before_destroy. However [...]

Popularity: 12% [?]