Displaying 2 results from an estimated 2 matches for "activerecord_versioning".
2011 Jun 16
1
Deep cloning an ActiveRecord
I have a situation where I want to duplicate an ActiveRecord including
duplication of has_many relationships.
I''ve seen a few plugins but it seems unclear if they will work on
Rails3. So I was wondering if anyone has a good suggestion for a
plugin they are currently using to do this?
Basically I''m doing this because I have an object that I want to allow
my users to edit. I
2010 Mar 28
1
keeping track of who did what
hello everybody.
i need to log "who did what" on some models. i was reading recipe 59
of rails recipes and i created something like that:
class LogSweeper < ActionController::Caching::Sweeper
observe :model1, :model2, :model3, :model4, :model5, ...
after_save(model)
save_log(model, "save")
end
after_destroy(model)
save_log(model, "destroy)
end