AutoCommit Fre Jul 31 21:03:04 CEST 2015

This commit is contained in:
Andreas Stephanides
2015-07-31 21:03:04 +02:00
26 changed files with 340 additions and 23 deletions

View File

@@ -3,6 +3,8 @@ class Survey::Question < ActiveRecord::Base
belongs_to :parent, polymorphic: true
has_many :choices
has_many :answers, through: :choices
include IsCommentable
def add_yesno_choices
c=Survey::Choice.new(title: "Ja")
c.save