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
remote: .
specs:
workflower (0.2.1)
workflower (0.2.2)
activesupport (>= 6.0.0)
GEM

View File

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

View File

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

View File

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

View File

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