lib/tasuku/concerns/models/taskables/text/request.rb in tasuku-0.1.0 vs lib/tasuku/concerns/models/taskables/text/request.rb in tasuku-0.1.1
- old
+ new
@@ -6,9 +6,11 @@
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