Skip to content

Instantly share code, notes, and snippets.

@mickey
Created April 4, 2012 23:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mickey/2306516 to your computer and use it in GitHub Desktop.
Save mickey/2306516 to your computer and use it in GitHub Desktop.
class AuditionObserver < ActiveRecord::Observer
# ACTIVITY OBSERVER : new audition posted
def after_create(audition)
if audition.actor
Activity.add(audition.actor.user, Activity::AUDITION_POSTED, audition)
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment