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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 26fe3945c60e59f5abf2ccff51c02da617f1c063cf19c903c5505567ceed13ca
4
- data.tar.gz: 57d0f65ee3a45cb0a8e5560fa90cf99ac1ec6f09ef7c161900eb3357c945ac89
3
+ metadata.gz: e10c176a47d549a92a06991d19c0191936870f267882996887f8a4926495ec11
4
+ data.tar.gz: bd7f34bfb4ce9629e165e4ae2f5e7e5b2262c5a3749856cf9ff3bf2d69cb8194
5
5
  SHA512:
6
- metadata.gz: a75424cbfffeca3f5205660320c9a6cd8a424680d76368f611feef1e578e7b55f90bcc6a0b44eec22d3d09a0c9621f0eb3fffbb149cc64965fa47a2fefea06a6
7
- data.tar.gz: 393d2aac7b201c4e84e66fecba0e54ec510977f5b4996bd9b0371e458f3a991408e9cd0ef6f339421fca5d96b303f4a9bee304b93818ad88ac637fdcf9b3c00e
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
- errors: ["Cannot update Business after submission. Use modification request workflow instead."],
27
+ message_key: "business.errors.update_submitted",
32
28
  status: :unprocessable_entity
33
29
  )
34
30
  end
@@ -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"
@@ -1,5 +1,5 @@
1
1
  module Dscf
2
2
  module Core
3
- VERSION = "0.2.7".freeze
3
+ VERSION = "0.2.8".freeze
4
4
  end
5
5
  end
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.7
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-12 00:00:00.000000000 Z
10
+ date: 2025-11-21 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: rails