You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't think its 100% correct to store id in @attributes. I don't think ActiveRecord does it, and it for sure don't include id when attributes() are called.
The text was updated successfully, but these errors were encountered:
Never mind. Had I used my eyes in the first place I'd notice that the id indeed is included in attributes(). What we might want to consider is implementing protected_attributes so that the id (and other attributes) can't be mass-assigned.
I don't think its 100% correct to store id in @attributes. I don't think ActiveRecord does it, and it for sure don't include id when attributes() are called.
The text was updated successfully, but these errors were encountered: