| Module | Audited::Auditor::ClassMethods |
| In: |
lib/audited/auditor.rb
|
[self.primary_key, inheritance_column, 'lock_version', 'created_at', 'updated_at']
You can add to those by passing one or an array of fields to skip.
class User < ActiveRecord::Base
audited except: :password
end
class User < ActiveRecord::Base
audited :if => :active?
def active?
self.status == 'active'
end
end