after I wrote this post I found that there is a plugin named 
'dm-is-versioned' which is doing what I mentioned.

I put is_versioned :on => :updated_at on my Post model and it creates a new 
row in post/version table. great!

however, it seems to be an issue with dm-timestamps plugins because if I 
don't put

before(:save) { self.updated_at = Time.now }

in model, it doesn't catch the event somehow.

anyways, problem solved :)

thanks,
koray.

-- 
You received this message because you are subscribed to the Google Groups 
"DataMapper" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/datamapper/-/xbHJkpdnlhYJ.
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/datamapper?hl=en.

Reply via email to