drriley / grocery

373 project
0 stars 17 forks source link

_id attribute in ItemPurchase model #2

Closed juliat closed 11 years ago

juliat commented 11 years ago

What is the _id attribute about in the item_purchase model?

drriley commented 11 years ago

It is the id attribute for item purchase

juliat commented 11 years ago

yes, but why is it explicitly defined and why does it have an underscore? normally rails creates it by default and it's not included in the :attr_accessible list in the model. If it's just supposed to be a normal id, we can change it to be more standard.