Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

There was a problem

You must be a member of this account.

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
    Arpit Jain commented at 1:43 PM

    Sorry 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? #=...
  • Arpit Jain
    • Tag set to activemodel, dirty
    by Arpit Jain at 1:41 PM

    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 ...