Sha256: 1ab0abec9a7920da54dbdbab12128399e6051dc1705d05003082da9bf5ff68e3

Contents?: true

Size: 697 Bytes

Versions: 7

Compression:

Stored size: 697 Bytes

Contents

module Sipity
  # This is responsible for mapping the Sipity::WorkflowAction to an object that
  # responds to .call
  #
  # We store, in the database, the 'service_name'. It is the name of a constant
  # in the object space (e.g. we constantize the given service_name). The
  # resolving service object should specify that `it_behaves_like "a Hyrax workflow method"`
  #
  # @see ./lib/hyrax/specs/shared_specs/workflow_method.rb
  # @see Sipity::WorkflowAction
  # @see Hyrax::Workflow::ActionTakenService to see how this is used.
  class Method < ActiveRecord::Base
    self.table_name = 'sipity_workflow_methods'
    belongs_to :workflow_action, class_name: 'Sipity::WorkflowAction'
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
hyrax-2.0.0.rc2 app/models/sipity/method.rb
hyrax-2.0.0.rc1 app/models/sipity/method.rb
hyrax-2.0.0.beta5 app/models/sipity/method.rb
hyrax-2.0.0.beta4 app/models/sipity/method.rb
hyrax-2.0.0.beta3 app/models/sipity/method.rb
hyrax-2.0.0.beta2 app/models/sipity/method.rb
hyrax-2.0.0.beta1 app/models/sipity/method.rb