lorefnon/workflow-orchestrator

View on GitHub
lib/workflow/adapters/remodel.rb

Summary

Maintainability
A
0 mins
Test Coverage
module Workflow
  module Adapter
    module Remodel
      module InstanceMethods
        def load_workflow_state
          send(self.class.workflow_column)
        end

        def persist_workflow_state(new_value)
          update(self.class.workflow_column => new_value)
        end
      end
    end
  end
end