adds images to anwers

This commit is contained in:
rgarcia
2017-10-04 21:42:57 +02:00
parent 24fc7ab70a
commit 1cf9bc4ad1
10 changed files with 166 additions and 3 deletions

View File

@@ -1,4 +1,6 @@
class Poll::Question::Answer < ActiveRecord::Base
include Galleryable
belongs_to :question, class_name: 'Poll::Question', foreign_key: 'question_id'
validates :title, presence: true