dscf-core 0.2.7 → 0.2.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/controllers/dscf/core/businesses_controller.rb +1 -5
- data/config/locales/en.yml +1 -0
- data/lib/dscf/core/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e10c176a47d549a92a06991d19c0191936870f267882996887f8a4926495ec11
|
|
4
|
+
data.tar.gz: bd7f34bfb4ce9629e165e4ae2f5e7e5b2262c5a3749856cf9ff3bf2d69cb8194
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: '039a1630b2eac7c862f96e9224de0d1c73dd61629fcb3d62c0f7e09d12daa52d6a818ff7920155ef52f8d30de22865937efa29b8601f45a7d76facae43b66e6d'
|
|
7
|
+
data.tar.gz: d166f00188bfd6304533b07492bb44b82a0e5f16e4f5bea17280917239a4e23cc2a9cc3301d2596321bbf8871eefd0a168c7ac22376b04fd36531cd08ce674ce
|
|
@@ -8,10 +8,6 @@ module Dscf
|
|
|
8
8
|
super do
|
|
9
9
|
business = @clazz.new(model_params)
|
|
10
10
|
business.user = current_user
|
|
11
|
-
business.reviews.build(
|
|
12
|
-
status: "draft",
|
|
13
|
-
context: "default"
|
|
14
|
-
)
|
|
15
11
|
|
|
16
12
|
if business.save && params[:business][:business_license].present?
|
|
17
13
|
document = business.documents.create!(
|
|
@@ -28,7 +24,7 @@ module Dscf
|
|
|
28
24
|
def update
|
|
29
25
|
unless @obj.editable?
|
|
30
26
|
return render_error(
|
|
31
|
-
|
|
27
|
+
message_key: "business.errors.update_submitted",
|
|
32
28
|
status: :unprocessable_entity
|
|
33
29
|
)
|
|
34
30
|
end
|
data/config/locales/en.yml
CHANGED
|
@@ -51,6 +51,7 @@ en:
|
|
|
51
51
|
show: "Business not found"
|
|
52
52
|
create: "Failed to create business"
|
|
53
53
|
update: "Failed to update business"
|
|
54
|
+
update_submitted: "Cannot update Business after submission. Use modification request workflow instead."
|
|
54
55
|
submit: "Failed to submit business"
|
|
55
56
|
approve: "Failed to approve business"
|
|
56
57
|
reject: "Failed to reject business"
|
data/lib/dscf/core/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: dscf-core
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.8
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Asrat
|
|
8
8
|
bindir: bin
|
|
9
9
|
cert_chain: []
|
|
10
|
-
date: 2025-11-
|
|
10
|
+
date: 2025-11-21 00:00:00.000000000 Z
|
|
11
11
|
dependencies:
|
|
12
12
|
- !ruby/object:Gem::Dependency
|
|
13
13
|
name: rails
|