Skip to content

Instantly share code, notes, and snippets.

@Breefield
Created March 4, 2013 22:59
Show Gist options
  • Save Breefield/5086443 to your computer and use it in GitHub Desktop.
Save Breefield/5086443 to your computer and use it in GitHub Desktop.
Way 2
class User < ActiveRecord::Base
after_create :notify_user_created
def notify_user_created
# Things happen in here
end
handle_asynchronously :notify_user_created
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment