Post by Peter Cooper on January 19th, 2007

Mix In Common Model Behaviors In Rails With “Concerns”

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.

[Post to Twitter] Tweet This

Comments are closed.