meta_workflows 0.8.5 → 0.8.6

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: 21f1e85fae97d61be9f9b8379a855a10f4dfbdd102d52e6d38fe131dd45b9e00
4
- data.tar.gz: c3c33844806e0e3245ea31d487de7e93c1283c6d5a7af0603ba2716c02e82815
3
+ metadata.gz: 6b77a7e4c35c915d045693675b711c52ba87a3eac9ba5f16d2dcff556131ebda
4
+ data.tar.gz: 0d519f2f1e2999a52ecb161a20a3761e9acf441b254303f4607fc225cace5b98
5
5
  SHA512:
6
- metadata.gz: 6978a0fa0531f9901c2cf7127df12ffb41678cd504561b152a58cb4f94d4f509eaa3999cb62af12e6dec508342f0515ab9a07de62a326678a55016492ee12bca
7
- data.tar.gz: 6a70ac8ef1c376c906fd2b78f8dfa2958f1b1ad4105a594f27d85c387b2a5d1d857c4ea51863e908a5a7e4e30d742d356c5283b07304869e7ef74b146e9a7fea
6
+ metadata.gz: c87dee53a2e8c5f3dfb2f2ec96b1888499a2ce850327910a6062c9e1fede1b727846f29e065a274204c7a233c35e67752665cad46c812227b61256d39588fbca
7
+ data.tar.gz: 88c0bd57ebc8310bee5dba554672167714159c152dd2952c05566053c6e262b5567c05f04b8ffe5fb22e8bd33e2f15ee5bde8ccd196e2d343fead326b86d5123
@@ -18,11 +18,16 @@ module MetaWorkflows
18
18
  record_class = params['redirect_class']
19
19
  redirect_method = params['redirect_method']
20
20
  redirect_message = params['redirect_message']
21
+ redirect_path_param = params['redirect_path']
21
22
 
22
- record_class_constant = record_class.to_s.safe_constantize
23
- record = record_class_constant&.find_by(id: record_id)
23
+ if redirect_path_param.present?
24
+ redirect_path = Rails.application.routes.url_helpers.send(redirect_path_param.to_s)
25
+ else
26
+ record_class_constant = record_class.to_s.safe_constantize
27
+ record = record_class_constant&.find_by(id: record_id)
24
28
 
25
- redirect_path = Rails.application.routes.url_helpers.send(redirect_method.to_s, record)
29
+ redirect_path = Rails.application.routes.url_helpers.send(redirect_method.to_s, record)
30
+ end
26
31
 
27
32
  Turbo::StreamsChannel.broadcast_append_to(
28
33
  turbo_stream_name(@workflow_execution.record),
@@ -3,7 +3,7 @@
3
3
  module MetaWorkflows
4
4
  MAJOR = 0
5
5
  MINOR = 8
6
- PATCH = 5 # this is automatically incremented by the build process
6
+ PATCH = 6 # this is automatically incremented by the build process
7
7
 
8
8
  VERSION = "#{MetaWorkflows::MAJOR}.#{MetaWorkflows::MINOR}.#{MetaWorkflows::PATCH}".freeze
9
9
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: meta_workflows
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.5
4
+ version: 0.8.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Leonid Medovyy