search for: activitylog

Displaying 1 result from an estimated 1 matches for "activitylog".

Did you mean: activity_log
2005 Dec 07
3
ActiveRecord::Observer problem
...ver. I have a simple observer... class ActivityObserver < ActiveRecord::Observer observe Customer def after_create(model) bind_params(model) @al.action = "create" @al.save logger "#{model.id} : created" 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 '...