wrangler 0.1.3 → 0.1.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/lib/wrangler/exception_notifier.rb +7 -6
- data/wrangler.gemspec +1 -1
- metadata +1 -1
@@ -15,6 +15,13 @@ module Wrangler
|
|
15
15
|
@@smtp_settings_overrides = {}
|
16
16
|
cattr_accessor :smtp_settings_overrides
|
17
17
|
|
18
|
+
# Allows overriding smtp_settings without changing parent class' settings.
|
19
|
+
# rails expects an instance method
|
20
|
+
#-----------------------------------------------------------------------------
|
21
|
+
def smtp_settings
|
22
|
+
@@smtp_settings_overrides.reverse_merge @@smtp_settings
|
23
|
+
end
|
24
|
+
|
18
25
|
# the default configuration
|
19
26
|
@@config ||= {
|
20
27
|
# who the emails will be coming from. if nil or missing or empty string,
|
@@ -41,12 +48,6 @@ module Wrangler
|
|
41
48
|
|
42
49
|
self.template_root = config[:mailer_template_root]
|
43
50
|
|
44
|
-
# Allows overriding smtp_settings without changing parent class' settings
|
45
|
-
#-----------------------------------------------------------------------------
|
46
|
-
def self.smtp_settings
|
47
|
-
@@smtp_settings_overrides.reverse_merge @@smtp_settings
|
48
|
-
end
|
49
|
-
|
50
51
|
# form and send the notification email (note: this gets called indirectly
|
51
52
|
# when you call ExceptionNotifier.deliver_exception_notification())
|
52
53
|
#
|
data/wrangler.gemspec
CHANGED