adds consistency to answer's namespace

This commit is contained in:
rgarcia
2017-10-04 17:06:29 +02:00
parent 1f2aa301d4
commit 461410a79d
6 changed files with 6 additions and 6 deletions

View File

@@ -0,0 +1,9 @@
class Poll::Question::Answer < ActiveRecord::Base
belongs_to :question, class_name: 'Poll::Question', foreign_key: 'poll_question_id'
validates :title, presence: true
def description
super.try :html_safe
end
end