Ben Allfree :: Painless Programming

Guaranteed results for iPhone, Rails, PHP, .NET, Flash, and more

A home for Rails observers and notifiers

November 5th, 2008 · No Comments

I was having a look at [http://www.railsenvy.com/2007/2/28/rails-caching-tutorial#advanced] and came across this great little snippet of code:


Rails::Initializer.run do |config|
   # ...
   config.load_paths += %W( #{RAILS_ROOT}/app/sweepers )
   # ...
end

It got me thinking that a folder for observers and notifiers would greatly improve my quality of life. I might even add a folder for models dedicated to cron jobs. I like to have my cron jobs in a separate model where I can find them.

Tags:

0 responses so far ↓

  • There are no comments yet...Kick things off by filling out the form below.

Leave a Comment