Sha256: 7f3b910360ff4d1bc84bacc6cd0ed663cac520d6c24d8266706bfc594f3e93fa

Contents?: true

Size: 284 Bytes

Versions: 1

Compression:

Stored size: 284 Bytes

Contents

module Blast::Tasks
  class Task < ApplicationRecord
    belongs_to :user
    scope :ordered, -> { order(created_at: :desc) }

    if Blast::Core.available?(:contacts)
      belongs_to :contact, class_name: "Blast::Contacts::Contact",
                 optional: true
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
blast_tasks-0.0.1 app/models/blast/tasks/task.rb