flexible_feeds 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/app/models/flexible_feeds/event.rb +10 -4
- data/lib/flexible_feeds/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
OGY0ZTE0YzM0MTNmOWE5ZDg5YjYzMzk4NzY3MzIxZjNlMjRhZTcyMw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
OGIwMjYyNWQ1YjFjM2UyM2NkOGRjMjY5MjA1NTY5OWE5YmZkNWM2Yw==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MzhiZjBkMjk5MTQ2YmY1ZDdhMWM1NjQ2ZDg5MzI4ZjA3NGZkOTE4YWI0MzU3
|
10
|
+
ODYzYmZkYjllZjdhYTJjYTk2ZTMyMTA3MTc1ZjgyNmMwMTYzOWVmMDdlNWU1
|
11
|
+
ODU4ZTRlMzI1OTM3NGUwOTc0YWZhYmIwMmMxYzhmMzJmMDliNmQ=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NWQxNmZlMjNjNjZjOTE1ZTA2NGRhMjNmNGU4ZjI2MjVkNDhmY2NmYzc4Yjhi
|
14
|
+
Y2NkMWU0MDdhMzMwYTExYmRiNzc2NjVhNGYwYjQ4YzhhNzFkM2ZmYTU1ZmRh
|
15
|
+
MmVmOGEyYjhmMGM0YTExZDMyNTc1MDlkMzZhYTEyOTdhYWNiMTk=
|
@@ -44,14 +44,20 @@ module FlexibleFeeds
|
|
44
44
|
end
|
45
45
|
|
46
46
|
def increment_parent_counter
|
47
|
-
|
48
|
-
this_ancestor
|
47
|
+
FlexibleFeeds::Event.transaction do
|
48
|
+
ancestors.each do |this_ancestor|
|
49
|
+
this_ancestor.increment(:children_count)
|
50
|
+
this_ancestor.save!
|
51
|
+
end
|
49
52
|
end
|
50
53
|
end
|
51
54
|
|
52
55
|
def decrement_parent_counter
|
53
|
-
|
54
|
-
|
56
|
+
FlexibleFeeds::Event.transaction do
|
57
|
+
ancestors.each do |this_ancestor|
|
58
|
+
this_ancestor.decrement(:children_count, children_count + 1)
|
59
|
+
this_ancestor.save!
|
60
|
+
end
|
55
61
|
end
|
56
62
|
end
|
57
63
|
|