Damian Janowski wrote: > On Mon, Aug 18, 2008 at 10:45 AM, Tom Lea <[EMAIL PROTECTED]> wrote: >> Linky: http://rails.lighthouseapp.com/projects/8994/tickets/798 >> >> It boils down to making this work: >> >> phrase = "shiver me timbers" >> pirate = Pirate.create!(:catchphrase => phrase) >> pirate.catchphrase = "*hic*" >> assert pirate.changed? >> pirate.catchphrase = phrase >> assert !pirate.changed? > > What's the real world use case?
Seems pretty straightforward: if you change an attribute and then change it back to the value it currently has in the db, it should no longer be considered dirty. +1 b --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en -~----------~----~----~----~------~----~------~--~---
