forked from bofh/fetsite
AutoCommit Fre Jul 31 21:03:04 CEST 2015
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user