On 29 June 2012 03:03, kengsreng tang <lists@ruby-forum.com> 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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en-US.
No comments:
Post a Comment