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
Type is a reserved word, so setting it in model.attributes doesn't work.
Adding the following line just above new_model.id = model.id should do the trick:
new_model[:type] = model[:type] if model[:type].present?
The text was updated successfully, but these errors were encountered:
Type is a reserved word, so setting it in model.attributes doesn't work.
Adding the following line just above new_model.id = model.id should do the trick:
new_model[:type] = model[:type] if model[:type].present?
The text was updated successfully, but these errors were encountered: