Sha256: f838555567ce0b4632bbf09dba23d4a85bbe6b7a17ff6336accac5df966fe35f

Contents?: true

Size: 380 Bytes

Versions: 3

Compression:

Stored size: 380 Bytes

Contents

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

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

      has_many :responses, dependent: :destroy

      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/text/request.rb
tasuku-1.0.1 lib/tasuku/concerns/models/taskables/text/request.rb
tasuku-0.1.1 lib/tasuku/concerns/models/taskables/text/request.rb