Sha256: e2a9557a5ed7a388a449eeca4713819d78d2c7637a96785a17fdd091400bbb5e

Contents?: true

Size: 491 Bytes

Versions: 5

Compression:

Stored size: 491 Bytes

Contents

module DiscoApp
  module Flow
    module Concerns
      module Trigger

        extend ActiveSupport::Concern

        included do
          belongs_to :shop

          self.table_name = :disco_app_flow_triggers

          enum status: {
            pending: 0,
            succeeded: 1,
            failed: 2,
            skipped: 3
          }

          def properties
            read_attribute(:properties).with_indifferent_access
          end
        end

      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
disco_app-0.18.2 app/models/disco_app/flow/concerns/trigger.rb
disco_app-0.18.3 app/models/disco_app/flow/concerns/trigger.rb
disco_app-0.18.6 app/models/disco_app/flow/concerns/trigger.rb
disco_app-0.18.4 app/models/disco_app/flow/concerns/trigger.rb
disco_app-0.18.1 app/models/disco_app/flow/concerns/trigger.rb