public
Rubygem
Description: Demonstrates a reference implementation for sending emails with logging and asynchronous support
Homepage: http://www.pluginaweek.org
Clone URL: git://github.com/pluginaweek/has_emails.git
Change how the base module is included to prevent namespacing conflicts
obrie (author)
Sat Oct 04 14:48:33 -0700 2008
commit  1b7088b15fbad3bfb378204b3aace7692073bc3c
tree    51dfc95db80e2d4528c5a90846847bfcef802ad4
parent  4b093bfd9275aa82429b6153994f763d8a7dee19
...
1
2
 
 
3
4
5
...
1
2
3
4
5
6
7
0
@@ -1,5 +1,7 @@
0
 == master
0
 
0
+* Change how the base module is included to prevent namespacing conflicts
0
+
0
 == 0.1.3 / 2008-09-07
0
 
0
 * Add compatibility with state_machine 0.3.0
...
5
6
7
8
9
10
11
12
13
14
15
16
...
61
62
63
64
 
65
...
5
6
7
 
 
 
 
 
 
8
9
10
...
55
56
57
 
58
59
0
@@ -5,12 +5,6 @@ require 'has_emails/extensions/action_mailer'
0
 module PluginAWeek #:nodoc:
0
   # Adds a generic implementation for sending emails
0
   module HasEmails
0
-    def self.included(base) #:nodoc:
0
-      base.class_eval do
0
-        extend PluginAWeek::HasEmails::MacroMethods
0
-      end
0
-    end
0
-    
0
     module MacroMethods
0
       # Creates the following email associations:
0
       # * +emails+ - Emails that were composed and are visible to the owner.  Emails may have been sent or unsent.
0
@@ -61,5 +55,5 @@ module PluginAWeek #:nodoc:
0
 end
0
 
0
 ActiveRecord::Base.class_eval do
0
-  include PluginAWeek::HasEmails
0
+  extend PluginAWeek::HasEmails::MacroMethods
0
 end

Comments