AutoCommit Die Aug 4 22:03:01 CEST 2015

This commit is contained in:
Andreas Stephanides
2015-08-04 22:03:01 +02:00
parent aa06d2195e
commit 9b1c35f499
7 changed files with 57 additions and 18 deletions

View File

@@ -5,6 +5,8 @@ class Survey::Question < ActiveRecord::Base
has_many :answers, through: :choices
include IsCommentable
scope :templates, ->{ where(flag_template:true)}
def add_yesno_choices
c=Survey::Choice.new(title: "Ja")
c.save