Skip to content

Instantly share code, notes, and snippets.

@jjb
Created August 2, 2012 15:13
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jjb/3237811 to your computer and use it in GitHub Desktop.
Save jjb/3237811 to your computer and use it in GitHub Desktop.
List an ActiveRecord model's callbacks
self.class._create_callbacks.select { |callback| callback.kind.eql?(:after) }.collect(&:filter)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment