Skip to content

Instantly share code, notes, and snippets.

@christophervigliotti
Created March 12, 2015 12:59
Show Gist options
  • Select an option

  • Save christophervigliotti/e5a1c43f3440e160625a to your computer and use it in GitHub Desktop.

Select an option

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