Displaying 1 result from an estimated 1 matches for "local_environment".
Did you mean:
  load_environment
  
2005 Dec 07
3
ActiveRecord::Observer problem
...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 WhitespaceKiller and the api docs, I don'...