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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 26d5c8a84089609896acf5ec9d4217133f38e7610d5928bb787344ca708f034f
4
- data.tar.gz: d2a9d27c63d5594e85db0d0f77a5540305d9590c92094e9026a10328e824ee2d
3
+ metadata.gz: fc9573866f7b906ea3bb2fffb89967c910032a7dd0657e56e66bcd88f81dca64
4
+ data.tar.gz: 21fccd57b4240b0fd129e0b6941a499e6200a2b2d016d6e3bf86d2a4aa4f749b
5
5
  SHA512:
6
- metadata.gz: 9e03292d0337594913998faa19610a6c386a01647ed36ae1848241d73670eb8e2f94ac1795290f3aa33ca14b1b10f10c75114be6e1e46fc75700c3407794d3f2
7
- data.tar.gz: bdd25c22095e91b41e494c9113735e859f992b6c7ba0e1e6767e100f7cb7fcd4f9fec926f6947b7c11d43424e745e71a7b15eef5ba0724561cd30e877cb77c9e
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
@@ -1,3 +1,3 @@
1
1
  module Proclaim
2
- VERSION = '0.6.1'
2
+ VERSION = '0.6.2'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: proclaim
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.1
4
+ version: 0.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kyle Fazzari