module Workflow::RemodelPersistence
Public Class Methods
happy_to_be_included_in?(klass)
click to toggle source
# File lib/workflow/remodel_persistence.rb, line 4 def self.happy_to_be_included_in?(klass) Object.const_defined?(:Remodel) and klass < Remodel::Entity end
Public Instance Methods
load_workflow_state()
click to toggle source
# File lib/workflow/remodel_persistence.rb, line 8 def load_workflow_state send(self.class.workflow_column) end
persist_workflow_state(new_value)
click to toggle source
# File lib/workflow/remodel_persistence.rb, line 12 def persist_workflow_state(new_value) update(self.class.workflow_column => new_value) end