Created
March 12, 2015 12:59
-
-
Save christophervigliotti/e5a1c43f3440e160625a to your computer and use it in GitHub Desktop.
call after_save from a module
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
module FancyModule | |
extend ActiveSupport::Concern | |
included do | |
after_save :do_that_thing | |
end | |
def do_that_thing | |
#thing goes here | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment