Module: ReaderNotifierExtensions

Defined in:
lib/reader_notifier_extensions.rb

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



3
4
5
6
7
8
9
10
11
12
13
# File 'lib/reader_notifier_extensions.rb', line 3

def self.included(base)
  base.class_eval {

    def message_with_group( reader, message, sender=nil )
      message_without_group( reader, message, sender )
      @body[:group] = message.group
    end
    alias_method_chain :message, :group      

  }
end