search for: log_act

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

Did you mean: logxact
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
2010 Jul 14
1
ActiveRecord::Observer, update_all and has_many
Hi, I''m using an ActiveRecord::Observer to log users changing data in my application. However, I''ve noted that adding an item to a has_many relationship gets logged, but removing the item does not. That is: @product.users << user is logged, but: @product.users.delete(user) is not. I''ve dug into ActiveRecord and found that the underlying issue is that the
2010 Mar 22
0
rspec bug, on Mysql::Error: MySQL server has gone away: ROLLBACK TO SAVEPOINT active_record_1
...; /home/poldz/.gem/ruby/1.8/gems/activerecord-2.3.5/lib/active_record/transactions.rb:208:in `rollback_active_record_state!'' /home/poldz/.gem/ruby/1.8/gems/activerecord-2.3.5/lib/active_record/transactions.rb:196:in `save'' /home/poldz/projects/ruby/wruwo/app/models/user.rb:811:in `log_activity'' /home/poldz/projects/ruby/wruwo/app/models/task.rb:490:in `notify_new_task'' /home/poldz/projects/ruby/wruwo/app/models/mail_reader.rb:123:in `create_task'' /home/poldz/projects/ruby/wruwo/app/models/mail_reader.rb:263:in `process_received_mail'' ./spec/models...