AutoCommit Die Aug 4 22:03:01 CEST 2015
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user