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 think ActiveModelBehavior is very user-friendly, but sometimes I may need to make some modifications to the model after it is retrieved (such as writing data to virtual fields). For example, each of my users will have an avatar struct, but the data in it is scanned from the local directory and is not related to the database.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I think ActiveModelBehavior is very user-friendly, but sometimes I may need to make some modifications to the model after it is retrieved (such as writing data to virtual fields). For example, each of my users will have an avatar struct, but the data in it is scanned from the local directory and is not related to the database.
Beta Was this translation helpful? Give feedback.
All reactions