Sha256: b5ab30c95c52fc36a440ee49edae77bd2a69fe19c9b565ccbe9fc8ec5dcf2106

Contents?: true

Size: 327 Bytes

Versions: 4

Compression:

Stored size: 327 Bytes

Contents

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

      belongs_to :request
      belongs_to :author, polymorphic: true

      validates :author_id, :author_type, presence: true
      validates :text, 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/text/response.rb
tasuku-1.0.1 app/models/tasuku/taskables/text/response.rb
tasuku-0.1.1 app/models/tasuku/taskables/text/response.rb
tasuku-0.1.0 app/models/tasuku/taskables/text/response.rb