proclaim 0.6.1 → 0.6.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/proclaim/subscription.rb +1 -1
- data/lib/proclaim/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fc9573866f7b906ea3bb2fffb89967c910032a7dd0657e56e66bcd88f81dca64
|
4
|
+
data.tar.gz: 21fccd57b4240b0fd129e0b6941a499e6200a2b2d016d6e3bf86d2a4aa4f749b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2f2d7c267d884e8af4881fb21de5629988cdc51291dd0e0b2c4c92fc0e61e3c596a751d14dd9008c400c348dc9f83bb240bb7794529a2056698387cf05fe20b5
|
7
|
+
data.tar.gz: 7751f71ac1199272dc981c39ffcafabca10b28b1e232a991c52a823148365b62f4f718203b03f5393ab08d6f7142ba2ae86ee72f6aaff7a7627e2ed9ce22044f
|
@@ -76,7 +76,7 @@ module Proclaim
|
|
76
76
|
other_subscriptions.each do | other_subscription |
|
77
77
|
if comment.nil? && other_subscription.comment.nil?
|
78
78
|
errors.add(:email, "is already subscribed")
|
79
|
-
elsif comment.post == other_subscription.post
|
79
|
+
elsif comment.try(:post) == other_subscription.comment.try(:post)
|
80
80
|
errors.add(:email, "is already subscribed to comments on this post")
|
81
81
|
end
|
82
82
|
end
|
data/lib/proclaim/version.rb
CHANGED