Sha256: 2b60feebf5777c9c1954778e546998dcb22f4585ab0c10d67b1c7fa5e6b8539a
Contents?: true
Size: 525 Bytes
Versions: 20
Compression:
Stored size: 525 Bytes
Contents
module Ddr module Managers class WorkflowManager < Manager PUBLISHED = "published" UNPUBLISHED = "unpublished" 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
20 entries across 20 versions & 1 rubygems