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 CHANGED
@@ -1 +1 @@
1
- 2.0.11
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 known_models.include?(a.class.name)
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 #{pp args} \n\n Known Models #{known_models}")
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
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "no_notifier_needed"
8
- s.version = "2.0.11"
8
+ s.version = "2.0.12"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Robert R. Meyer"]
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.11
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: -3676706837434012667
211
+ hash: 3800541127858017842
212
212
  segments:
213
213
  - 0
214
214
  version: "0"