Sha256: 97984792be3eeeff521a76fe34614215e2b122055f7b6b7826f300b7b93327ef

Contents?: true

Size: 373 Bytes

Versions: 4

Compression:

Stored size: 373 Bytes

Contents

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

      mount_uploader :image, ImageUploader

      belongs_to :request
      belongs_to :author, polymorphic: true

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