Skip to content

Instantly share code, notes, and snippets.

@christophervigliotti
Created March 12, 2015 12:59
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 christophervigliotti/e5a1c43f3440e160625a to your computer and use it in GitHub Desktop.
Save christophervigliotti/e5a1c43f3440e160625a to your computer and use it in GitHub Desktop.
call after_save from a module
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