search for: activity_log

Displaying 3 results from an estimated 3 matches for "activity_log".

2005 Dec 07
3
ActiveRecord::Observer problem
...ot; end private def bind_params(model) @al = ActivityLog.new @al.user_id = User.current.id @al.customer_id = User.current.customer_id @al.object_type = model.class.name @al.object_id = model.id end end and class ActivityLog < ActiveRecord::Base set_table_name "activity_log" end in my local_environment.rb require ''lib/activity_observer'' ActivityObserver.instance why does nothing ever seem to happen when I create a new Customer? I expect the database to be populated and the log to be updated, but neither happens Looking at the WhitespaceKi...
2006 Aug 01
8
Decoupled observers for controllers?
In the Rails Recipes book the recipe "Keeping track of who did what" explains how to do decoupled observing of models. In my application I''d like to do a similar thing but watching the controllers. For example, when somebody hits the login method of the Security controller, I''d like to make a note of it. In this case I could observe the User model and watch for
2008 Sep 10
2
DNS Logging with Selinux enabled
...########################################################## # Logging Configuration # logging { # # Define channels for the two log files # channel query_log { severity info; print-time yes; file "/var/log/query.log" versions 3 size 100M; }; channel activity_log { severity info; print-time yes; print-category yes; print-severity yes; file "/var/log/activity.log" versions 3 size 100M; Below is the security context of the files in the chroot. [root at josh log]# ls -alZ /var/named/chroot/var/log/activity.log -rw...