AutoCommit Sam Aug 1 22:03:01 CEST 2015

This commit is contained in:
Andreas Stephanides
2015-08-01 22:03:01 +02:00
parent 2a7ae7c2bf
commit 2b01a87d15
9 changed files with 25 additions and 10 deletions

View File

@@ -1,6 +1,6 @@
class Survey::Choice < ActiveRecord::Base
belongs_to :question, class_name: 'Survey::Question'
attr_accessible :picture, :sort, :text, :icon, :picture_cache, :remove_picture
attr_accessible :picture, :sort, :text, :icon, :picture_cache, :remove_picture, :question_id
has_many :answers, class_name: 'Survey::Answer'
include ActionView::Helpers::TagHelper
mount_uploader :picture, PictureUploader