Post by Peter Cooper on January 19th, 2007
Mix In Common Model Behaviors In Rails With “Concerns”

- Under The Hood of Rails’ ‘find’ Method
- How to Build Simple Console Apps with Ruby and ActiveRecord
- Create a daemon / server in 11 lines of Ruby


In Concerns in ActiveRecord, Jamis Buck writes about a simple technique of using modules to mix in functionality shared by multiple models without resorting to STI. This technique has been possible in Rails since.. ever, but I must admit I'd never considered it before, so I'm sure a lot of people will find it useful.

Click here to add on del.icio.us
Tweet This








