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
In this way, we don't need to manually assign attribute by using setter respectively.
I think it's useful and nice to have, in ActiveModel there is a module called AttributeAssignment, maybe we can consider adding it into BaseModel since we already have ActiveModel dependency?
The text was updated successfully, but these errors were encountered:
Hi, is there a way to assign multiple attributes into model after initialized? For example:
In this way, we don't need to manually assign attribute by using setter respectively.
I think it's useful and nice to have, in
ActiveModel
there is a module called AttributeAssignment, maybe we can consider adding it intoBaseModel
since we already haveActiveModel
dependency?The text was updated successfully, but these errors were encountered: