cwninja-inaction_mailer 0.3 → 0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Rakefile +1 -1
- data/lib/inaction_mailer.rb +3 -1
- data/rails/init.rb +0 -1
- metadata +1 -1
data/Rakefile
CHANGED
|
@@ -17,7 +17,7 @@ end
|
|
|
17
17
|
|
|
18
18
|
spec = Gem::Specification.new do |s|
|
|
19
19
|
s.name = %q{inaction_mailer}
|
|
20
|
-
s.version = "0.
|
|
20
|
+
s.version = "0.4"
|
|
21
21
|
s.summary = %q{An ActionMailer delivery mechanism to save mails as files in a directory.}
|
|
22
22
|
s.description = %q{An ActionMailer delivery mechanism to save mails as files in a directory.}
|
|
23
23
|
|
data/lib/inaction_mailer.rb
CHANGED
|
@@ -9,7 +9,7 @@ module InactionMailer
|
|
|
9
9
|
|
|
10
10
|
class << self
|
|
11
11
|
def hook!
|
|
12
|
-
ActionMailer::Base.__send__(:include, self)
|
|
12
|
+
ActionMailer::Base.__send__(:include, self) if defined? ActionMailer::Base
|
|
13
13
|
end
|
|
14
14
|
|
|
15
15
|
def new_mail_file(&block)
|
|
@@ -34,3 +34,5 @@ module InactionMailer
|
|
|
34
34
|
end
|
|
35
35
|
|
|
36
36
|
end
|
|
37
|
+
|
|
38
|
+
InactionMailer.hook!
|
data/rails/init.rb
CHANGED