lib/has_messages.rb in has_messages-0.1.3 vs lib/has_messages.rb in has_messages-0.2.0

- old
+ new

@@ -1,16 +1,10 @@ require 'state_machine' module PluginAWeek #:nodoc: # Adds a generic implementation for sending messages between users module HasMessages - def self.included(base) #:nodoc: - base.class_eval do - extend PluginAWeek::HasMessages::MacroMethods - end - end - module MacroMethods # Creates the following message associations: # * +messages+ - Messages that were composed and are visible to the owner. Mesages may have been sent or unsent. # * +received_messages - Messages that have been received from others and are visible. Messages may have been read or unread. # @@ -71,7 +65,7 @@ end end end ActiveRecord::Base.class_eval do - include PluginAWeek::HasMessages + extend PluginAWeek::HasMessages::MacroMethods end