Sha256: eccd598726bb5a9748da34392bd768fd8413e3c367c46eb771660dbd6716dccd

Contents?: true

Size: 387 Bytes

Versions: 4

Compression:

Stored size: 387 Bytes

Contents

module Tasuku
  module Taskables
    class URL::Response < ActiveRecord::Base
      include Taskable::Submission
      include Embeddable

      embeddable :video, from: :url

      belongs_to :request
      belongs_to :author, polymorphic: true

      validates :author_id, :author_type, presence: true
      validates :url, presence: true

      request is: :request
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
tasuku-1.1.0 app/models/tasuku/taskables/url/response.rb
tasuku-1.0.1 app/models/tasuku/taskables/url/response.rb
tasuku-0.1.1 app/models/tasuku/taskables/url/response.rb
tasuku-0.1.0 app/models/tasuku/taskables/url/response.rb