effective_products 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/effective/stamp.rb +1 -5
- data/lib/effective_products/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: a355433e74133bc2d4eb3217105b107bd7bda886da225da1a8a28aaa66b18ee8
|
4
|
+
data.tar.gz: a4e568829f7d037dfe62993ed6b8540328fcf53a9b687c738fa6e9723c83886a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 346b3a090af9dee0399a7307d276e340a70955e46eab95ed191149716a46ca0c898b65de68396d82f9c3dbd73760abe326acc38ecf3eb549287ad79a7c60101a
|
7
|
+
data.tar.gz: b3a4642a05c2e54077a98639fe548164da79c81b00f6c6039d310ca3905fdd4e8f6a630e11babf4a72f2be76fe28d5df913ba355469db9d624c72c1eefd8b545
|
@@ -52,7 +52,7 @@ module Effective
|
|
52
52
|
scope :with_stamp_wizards, -> { where(applicant_id: nil).where.not(stamp_wizard_id: nil) }
|
53
53
|
|
54
54
|
scope :ready_to_issue, -> {
|
55
|
-
with_approved_applicants.or(with_stamp_wizards).purchased.where.not(
|
55
|
+
with_approved_applicants.or(with_stamp_wizards).purchased.where.not(status: :issued)
|
56
56
|
}
|
57
57
|
|
58
58
|
validates :category, presence: true, inclusion: { in: CATEGORIES }
|
@@ -71,10 +71,6 @@ module Effective
|
|
71
71
|
['Professional Stamp', *name.presence].join(' ')
|
72
72
|
end
|
73
73
|
|
74
|
-
def issued?
|
75
|
-
issued_at.present?
|
76
|
-
end
|
77
|
-
|
78
74
|
def mark_as_issued!
|
79
75
|
issued!
|
80
76
|
end
|