Created
August 2, 2012 15:13
-
-
Save jjb/3237811 to your computer and use it in GitHub Desktop.
List an ActiveRecord model's callbacks
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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