Skip to content

Instantly share code, notes, and snippets.

@byroot
Created February 26, 2013 05:18
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 byroot/5036110 to your computer and use it in GitHub Desktop.
Save byroot/5036110 to your computer and use it in GitHub Desktop.
module SomeObserver
extend ActiveSupport::Concern
included do
after_create :do_something
end
def do_something
#
end
end
class User < AR::Base
include SomeObserver
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment