Sha256: a9c412d7ee3cb49b415682ad3342e9a8b74d7cd22c6a6bccc3ad7216db0b0c56

Contents?: true

Size: 360 Bytes

Versions: 3

Compression:

Stored size: 360 Bytes

Contents

module Tasuku
  module Concerns::Models::Taskables::Image::Request
    extend ActiveSupport::Concern

    included do
      include ::Tasks::Taskables::Taskable
      include ::Tasks::Concerns::Illustratable

      has_many :responses

      validates_presence_of :text

      responses are: :responses

      def to_s
        text
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
tasuku-1.1.0 lib/tasuku/concerns/models/taskables/image/request.rb
tasuku-1.0.1 lib/tasuku/concerns/models/taskables/image/request.rb
tasuku-0.1.1 lib/tasuku/concerns/models/taskables/image/request.rb