mumuki-domain 9.22.0 → 9.22.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/concerns/with_discussion_status.rb +1 -0
- data/lib/mumuki/domain/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: 138e6386f4e43861b313756d9ee01943ab84d4beef60faf7936f587ac4e40f82
|
4
|
+
data.tar.gz: 54afa2c2e250eec1de884cdf64568ec6d6c113508119884a6e96bfb7d91376f0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f52a72a3f090f95962572aa1cc17697ce4c1cec4608cb25dfbebf74db8f394349750868027865ef9f3cba9fd9564a8598875e4e17231e41b38bae06ed0abbec3
|
7
|
+
data.tar.gz: 2b4e6faed9348156829d672cc4ab98a093348f33831a14aec6ed5b197ba44277ad1a8bdbf4bd2667a6b95e6b1c274fd798eadf92979cb7876a0092108a28e6b2
|
@@ -4,6 +4,7 @@ module WithDiscussionStatus
|
|
4
4
|
included do
|
5
5
|
serialize :status, Mumuki::Domain::Status::Discussion
|
6
6
|
validates_presence_of :status
|
7
|
+
scope :by_status, -> (status) { where(status: status) }
|
7
8
|
end
|
8
9
|
|
9
10
|
delegate :closed?, :opened?, :solved?, :pending_review?, :reachable_statuses, to: :status
|