Sha256: 6505a29aa6b014779b188f9b08bfdab20b59c83672998c0438dc1bea0628b0eb

Contents?: true

Size: 406 Bytes

Versions: 3

Compression:

Stored size: 406 Bytes

Contents

module Tasuku::Concerns::Verifiable
  extend ActiveSupport::Concern

  # TODO: check
  included do
    has_one :verification, as: :verifiable, class_name: '::Tasks::Taskables::Verification', dependent: :destroy
    has_one :task, through: :verification, class_name: '::Tasks::Task'
    has_many :confirmations, through: :verification, class_name: '::Tasks::Taskables::Verification::Confirmation'
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
tasuku-1.0.1 lib/tasuku/concerns/verifiable.rb
tasuku-0.1.1 lib/tasuku/concerns/verifiable.rb
tasuku-0.1.0 lib/tasuku/concerns/verifiable.rb