Hi
Here I am trying to get the details of changed fields in update method
I got those fields by changes method. #obj.changes
But problem is that I got changes in following ways even when I am not
updating anything.
obj.changes
{"address"=>[nil, ""]}
This is what I don't want. I want only those changes which are text to
blank or blank to text or text to text..
Can anybody help me ?
Thanks
Brijesh Shah
--
Posted via http://www.ruby-forum.com/.
--
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.
No comments:
Post a Comment