Extending ActiveRecord::Base

I'm no expert but my guess is that if you're intending your method to be a class method, then you need to prefix the method name with "self."

--gw