AutoCommit Mit Aug 5 09:03:03 CEST 2015

This commit is contained in:
Andreas Stephanides
2015-08-05 09:03:03 +02:00
parent 9b1c35f499
commit 3a4888c9a4
3 changed files with 4 additions and 1 deletions

View File

@@ -4,7 +4,7 @@ class Survey::Question < ActiveRecord::Base
has_many :choices, dependent: :destroy
has_many :answers, through: :choices
include IsCommentable
FLAG_ICONS={"delete" => "fa fa-trash"}
scope :templates, ->{ where(flag_template:true)}
def add_yesno_choices