has_moderated 0.0.5 → 0.0.6
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/has_moderated/version.rb +1 -1
- data/lib/has_moderated.rb +0 -1
- metadata +3 -3
data/lib/has_moderated.rb
CHANGED
|
@@ -160,7 +160,6 @@ module HasModerated
|
|
|
160
160
|
moderations = []
|
|
161
161
|
self.changes.each_pair do |att_name, values|
|
|
162
162
|
att_name = att_name.to_s
|
|
163
|
-
next if values[1].blank?
|
|
164
163
|
if self.class.moderated_attributes.include?(att_name)
|
|
165
164
|
moderations.push(Moderation.create!({
|
|
166
165
|
:moderatable_type => self.class.to_s,
|
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:
|
|
4
|
+
hash: 19
|
|
5
5
|
prerelease:
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 0
|
|
9
|
-
-
|
|
10
|
-
version: 0.0.
|
|
9
|
+
- 6
|
|
10
|
+
version: 0.0.6
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- Jan Berdajs
|