laserlemon-email_override 0.1.1 → 0.1.2
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/email_override.gemspec +1 -1
- data/lib/email_override.rb +4 -4
- metadata +1 -1
data/Rakefile
CHANGED
@@ -2,7 +2,7 @@ require 'rubygems'
|
|
2
2
|
require 'rake'
|
3
3
|
require 'echoe'
|
4
4
|
|
5
|
-
Echoe.new('email_override', '0.1.
|
5
|
+
Echoe.new('email_override', '0.1.2') do |g|
|
6
6
|
g.description = %( Intercept ActionMailer email deliveries in non-production environments)
|
7
7
|
g.url = 'http://github.com/laserlemon/email_override'
|
8
8
|
g.author = 'Steve Richert'
|
data/email_override.gemspec
CHANGED
data/lib/email_override.rb
CHANGED
@@ -17,16 +17,16 @@ module LaserLemon
|
|
17
17
|
base.cattr_accessor :override_bcc
|
18
18
|
base.override_bcc = []
|
19
19
|
|
20
|
-
base.
|
21
|
-
|
22
|
-
|
20
|
+
base.instance_eval do
|
21
|
+
include ClassInstanceMethods
|
22
|
+
|
23
23
|
alias_method_chain :recipients, :override
|
24
24
|
alias_method_chain :cc, :override
|
25
25
|
alias_method_chain :bcc, :override
|
26
26
|
end
|
27
27
|
end
|
28
28
|
|
29
|
-
module
|
29
|
+
module ClassInstanceMethods
|
30
30
|
def local?
|
31
31
|
local_environments.include?(Rails.env)
|
32
32
|
end
|