Arpit Jain
Not a member
Arpit Jain's latest activity
Saturday, September 12 2009
2919
Activerecord::Base#clone does not set dirty bits
was updated
in Ruby on Rails
-
Arpit Jain commented at 1:43 PMSorry the code block didn't come correctly in previous comment.
Here is what I meant :user = User.new(:email => "someemail@email.com") u.email_changed? #=... -
- Tag set to activemodel, dirty
I ran into the same problem when my records could not be saved on cloning as i used #{attr}_changed? to locate the changes in new/cloned objects.
I would still ...