Displaying 2 results from an estimated 2 matches for "logsweeper".
Did you mean:
log_sweeper
2000 Jun 28
0
response to The r3mix review (fwd)
Yes, r3mix found a bug, no it's not a serious one.
It's amazing how something small gets overblown like this. The r3mix reviewer
basically just hit the known short block trigger bug when doing his tests.
We've known about this bug since before the beta and haven't fixed it yet
because it was considered relatively minor; [ironically] it mostly affects test
samples with a single
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
private
save_log(model, event, user_id = controller.session[:acc...