Skip to content

Instantly share code, notes, and snippets.

@christos christos/gist:128670
Created Jun 12, 2009

Embed
What would you like to do?
# mailer_twitterable/lib/supercoco9/mailer_twitterable.rb
module Supercoco9
module MailerTwitterable
def self.included(base)
base.extend ClassMethods
base.include InstanceMethods
end
module ClassMethods
def deliver_with_twitterable!(mail=@mail)
# ... your code here
deliver_without_twitterable!
end
alias_method_chain :deliver!, :twitterable
end
module InstanceMethods
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.