Sha256: 8a1bf69410e3611d976f85ab11ea2d1aab9ae386cf17101eb2af32dfb46e4936
Contents?: true
Size: 992 Bytes
Versions: 13
Compression:
Stored size: 992 Bytes
Contents
module Sipity # A named thing that happens within the bounds of a :workflow. # # When a Sipity::WorkflowAction is taken, it may: # * Advance the state to a new Sipity::WorkflowState (as defined by # the :resulting_workflow_state relation) # * Deliver one or more notifications (as defined by the # :notifiable_contexts relation) # # @see CurationConcerns::Forms::WorkflowActionForm class WorkflowAction < ActiveRecord::Base self.table_name = 'sipity_workflow_actions' belongs_to :workflow, class_name: 'Sipity::Workflow' belongs_to :resulting_workflow_state, class_name: 'Sipity::WorkflowState' has_many :workflow_state_actions, dependent: :destroy, class_name: 'Sipity::WorkflowStateAction' has_many :triggered_methods, dependent: :destroy, class_name: 'Sipity::Method' has_many :notifiable_contexts, dependent: :destroy, as: :scope_for_notification, class_name: 'Sipity::NotifiableContext' end end
Version data entries
13 entries across 13 versions & 1 rubygems