Sha256: dfb868ac08ea9f15f1947a734c17ba310fe3b0060fdc4c6433b994c8db35dde8
Contents?: true
Size: 772 Bytes
Versions: 1
Compression:
Stored size: 772 Bytes
Contents
module CurationConcerns # Workflow considerations module Publishable extend ActiveSupport::Concern included do # This holds the workflow state property :state, predicate: Vocab::FedoraResourceStatus.objState, multiple: false class_attribute :state_workflow, instance_writer: false self.state_workflow = StateWorkflow end # Override this method if you have some critera by which records should not # display in the search results. def suppressed? state_workflow.new(state).pending? end def to_sipity_entity raise "Can't create an entity until the model has been persisted" unless persisted? @sipity_entity ||= Sipity::Entity.find_by(proxy_for_global_id: to_global_id.to_s) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
curation_concerns-1.7.0.beta1 | app/models/concerns/curation_concerns/publishable.rb |