KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
What's the proper way to initialize a class_attribute in Rails? 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.
Tags (comma-separated)
Save Edits
Cancel