L
Luke Renn
What is the proper term for things like attr :<id> and belongs_to
:<model>, etc. How do you code them? I tried googling around, but
since I don't know what to call it, its a little tough. I looked at
the ActiveRecord code for a few minutes and it looks like they're just
class methods, but I don't understand how ruby interprets it i guess.
Thanks.
:<model>, etc. How do you code them? I tried googling around, but
since I don't know what to call it, its a little tough. I looked at
the ActiveRecord code for a few minutes and it looks like they're just
class methods, but I don't understand how ruby interprets it i guess.
Thanks.