aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/question_content_text.rb')
-rw-r--r--app/models/question_content_text.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/question_content_text.rb b/app/models/question_content_text.rb
index 988f890..37540e2 100644
--- a/app/models/question_content_text.rb
+++ b/app/models/question_content_text.rb
@@ -15,6 +15,7 @@ class QuestionContentText < ActiveRecord::Base
inherit_permissions(:question)
+ # Returns new answer (of proper class) of user for question (relation).
def new_answer_of(user)
Answer.new :question_id => question_id, :owner => user
end