has_moderated 0.0.6 → 0.0.7

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.
@@ -1,3 +1,3 @@
1
1
  module HasModerated
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
  end
data/lib/has_moderated.rb CHANGED
@@ -179,7 +179,9 @@ module HasModerated
179
179
  assocs.each_pair do |assoc_name, assoc|
180
180
  one_assoc = []
181
181
  assoc.each do |m|
182
- if m.new_record?
182
+ if m.class == Fixnum
183
+ one_assoc.push(m)
184
+ elsif m.new_record?
183
185
  one_assoc.push(m.attributes)
184
186
  else
185
187
  one_assoc.push(m.id)
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: has_moderated
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
4
+ hash: 17
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 6
10
- version: 0.0.6
9
+ - 7
10
+ version: 0.0.7
11
11
  platform: ruby
12
12
  authors:
13
13
  - Jan Berdajs