This commit is contained in:
Brusk Hamarash 2022-01-17 11:57:53 +03:00
parent 200e16ff08
commit 7fc0c61063
Signed by: broosk1993
GPG Key ID: 5D20F7E02649F74E
5 changed files with 7 additions and 5 deletions

View File

@ -1,7 +1,7 @@
PATH PATH
remote: . remote: .
specs: specs:
workflower (0.2.1) workflower (0.2.2)
activesupport (>= 6.0.0) activesupport (>= 6.0.0)
GEM GEM

View File

@ -1,3 +1,5 @@
require "active_support"
module Workflower module Workflower
mattr_accessor :workflower_state_column_name, :default_workflow_id mattr_accessor :workflower_state_column_name, :default_workflow_id
module ActsAsWorkflower module ActsAsWorkflower

View File

@ -1,5 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
module Workflower module Workflower
VERSION = "0.2.1" VERSION = "0.2.2"
end end

View File

@ -20,7 +20,7 @@ class DummyFeature
@sequence = attrs["sequence"] @sequence = attrs["sequence"]
end end
workflower source: WorkflowSource.new, workflower source: WorkflowSource,
workflower_state_column_name: "workflow_state", workflower_state_column_name: "workflow_state",
conditions: { workflow_model_name: "DummyEntity" } default_workflow_id: 1
end end

View File

@ -1,5 +1,5 @@
class WorkflowSource class WorkflowSource
def initialize def initialize(_model)
@workflows = { @workflows = {
"1": [ "1": [
{ {