Sha256: 7d48663214b15edde7011e77394aa346ad358b76e3c597ae3cc3ac295fd15530

Contents?: true

Size: 323 Bytes

Versions: 2

Compression:

Stored size: 323 Bytes

Contents

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

    included do
      include ::Tasks::Taskables::Taskable

      has_many :responses

      validates :text, :code, presence: true

      responses are: :responses

      def to_s
        text
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

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