Skip to content

Instantly share code, notes, and snippets.

@zmoazeni
Created January 28, 2009 01:05
Show Gist options
  • Save zmoazeni/53753 to your computer and use it in GitHub Desktop.
Save zmoazeni/53753 to your computer and use it in GitHub Desktop.
class Foo < ActiveRecord::Base
belongs_to :user
private
##
# Override callbacks to audit users
##
def audit_create_callback
audit_create(user)
end
def audit_update_callback
audit_update(user)
end
def audit_destroy_callback
audit_destroy(user)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment