search for: record_version

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

2006 Sep 15
2
Caching::Sweeper Access to Controller
...9;'s my code (the problem is with ''controller'' being nil): def log(record, event, user = controller.session[:user]) a = AuditTrail.new(:record_id => record.id, :record_type => record.type.name, :event => event, :user_id => user) a.record_version = record.version if record.respond_to?("version") a.save! end The interesting thing is that it only happens on actions within one of the controllers that are calling the cache sweeper (cache_sweeper :audit_sweeper). Any help or pointers would be much appreciated. Erik