Displaying 1 result from an estimated 1 matches for "log_sweep".
Did you mean:
logsweep
2010 Mar 28
1
keeping track of who did what
...[:account_id])
#create the log entry, i want to save the id of the model, the id
of the logged user and something to describe the action.
#controller isn''t defined here so i can''t access the user_id.
end
end
in environment.rb i added:
config.active_record.observers = :log_sweeper
the sweeper is called when something happen to the observed models,
but i can''t access the controller (and so, the user_id) from there.
any help?
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group,...