On 29 June 2012 03:03, kengsreng tang <[email protected]> wrote:
> For example:
> i have model Person
> Class Person
>  id: 1
>  name: "test"
> end
>
> this code:
> Person.name_will_change!
>
> why we need to put that above line of code?

I think these probably cover it.

http://railscasts.com/episodes/109-tracking-attribute-changes/
http://archives.ryandaigle.com/articles/2008/3/31/what-s-new-in-edge-rails-dirty-object

Colin

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" 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-talk?hl=en-US.

Reply via email to