Sha256: a01de38626739ddae8d2dfbb09952b6381c057082b2c3a0a0d296bf83ed91743

Contents?: true

Size: 465 Bytes

Versions: 7

Compression:

Stored size: 465 Bytes

Contents

module DiscoApp
  module Flow
    module Concerns
      module Action

        extend ActiveSupport::Concern

        included do
          belongs_to :shop

          self.table_name = :disco_app_flow_actions

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

          def properties
            read_attribute(:properties).with_indifferent_access
          end
        end

      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

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