Sha256: 5f46c4c555375bf37dd00842c796b075331bafd7fdabd36ae38fccdd0375a665
Contents?: true
Size: 515 Bytes
Versions: 2
Compression:
Stored size: 515 Bytes
Contents
module Ddr module Managers class WorkflowManager < Manager PUBLISHED = "published" UNPUBLISHED = nil def published? object.workflow_state == PUBLISHED end def publish object.workflow_state = PUBLISHED end def publish! publish object.save end def unpublish object.workflow_state = UNPUBLISHED end def unpublish! unpublish object.save end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ddr-models-1.8.1 | lib/ddr/managers/workflow_manager.rb~ |
ddr-models-1.8.0 | lib/ddr/managers/workflow_manager.rb~ |