Skip to content

Instantly share code, notes, and snippets.

@mikepence
Created February 2, 2014 17:55
Show Gist options
  • Save mikepence/8772196 to your computer and use it in GitHub Desktop.
Save mikepence/8772196 to your computer and use it in GitHub Desktop.
require 'active_support/concern'
module Campaign::Events
extend ActiveSupport::Concern
included do
def generate_event
Bus::Event::CampaignSubmittedForReview.create(:campaign => self)
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment