no_notifier_needed 2.0.11 → 2.0.12
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/no_notifier_needed/send.rb +4 -4
- data/no_notifier_needed.gemspec +1 -1
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.0.
|
1
|
+
2.0.12
|
@@ -32,12 +32,12 @@ module NoNotifierNeeded
|
|
32
32
|
args = args.flatten if args.respond_to?(:flatten)
|
33
33
|
args.each do |a|
|
34
34
|
next if a.blank?
|
35
|
-
if
|
36
|
-
th[a.class.name.downcase.to_sym] = a.id
|
37
|
-
elsif a.is_a?(Hash)
|
35
|
+
if a.is_a?(Hash)
|
38
36
|
a.each{|k,v| th[k.to_sym] = CGI.escapeHTML(v) }
|
37
|
+
elsif known_models.include?(a.class.name) || a.class.respond_to?(:column_names)
|
38
|
+
th[a.class.name.downcase.to_sym] = a.id
|
39
39
|
else
|
40
|
-
raise ArgumentError.new("Unknown #{a.class} passed to email procesor. \n Object #{a.inspect} \n\n WhichEmail: #{which_email} \n Args #{
|
40
|
+
raise ArgumentError.new("Unknown #{a.class} passed to email procesor. \n Object #{a.inspect} \n\n WhichEmail: #{which_email} \n Args #{args} \n\n Known Models #{known_models}")
|
41
41
|
end
|
42
42
|
end
|
43
43
|
th
|
data/no_notifier_needed.gemspec
CHANGED
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: no_notifier_needed
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 2.0.
|
5
|
+
version: 2.0.12
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Robert R. Meyer
|
@@ -208,7 +208,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
208
208
|
requirements:
|
209
209
|
- - ">="
|
210
210
|
- !ruby/object:Gem::Version
|
211
|
-
hash:
|
211
|
+
hash: 3800541127858017842
|
212
212
|
segments:
|
213
213
|
- 0
|
214
214
|
version: "0"
|