#StackBounty: #ruby-on-rails #ruby-on-rails-4 Rails – detach model from database session

Bounty: 50

I came across a scenario where in other languages I would detach the model object from the transaction then I can alter it all I want without worry of an automatic-update to the record.

Question

  1. Does rails not support attachingdetaching a model object?

  2. What is the alternative, just duplicate the object?

Thanks


Get this bounty!!!

Leave a Reply