Displaying 1 result from an estimated 1 matches for "write_audit".
Did you mean:
write_audio
2006 Sep 04
2
"include" versus "extend" - what's the difference
...d
#
def without_auditing(&block)
self.class.without_auditing(&block)
end
private
# Creates a new record in the audits table if applicable
def audit_create
logger.debug "ACTS AS: audit_create"
write_audit(:create)
end
def audit_update
write_audit(:update) if changed?
end
def audit_destroy
write_audit(:destroy)
end
def write_audit(action = :update)
logger.debug "ACTS AS: write_audit"...