← Back to Upcase

Question about defining methods within class << self in an ActiveRecord model

(Philip Bradley) #1

I’m not sure if this is appropriate but since Chad Pytel coauthored this book maybe I can ask here too.

I’m not clear about why you would define the methods referenced in this stack overflow post as class methods and not instance methods. Can anyone shed light?