What's the proper way to initialize a class_attribute in Rails?
class_attribute
I am using this:
class Foo < ActiveRecord::Base class_attribute :foobar self.foobar = [] # ... end
Which seems to work fine, but also seems to look a bit non-Railsy to me.