AutoCommit Don Aug 6 22:03:02 CEST 2015

This commit is contained in:
Andreas Stephanides
2015-08-06 22:03:02 +02:00
parent 0c0e7ba051
commit bdb0025a8c
5 changed files with 64 additions and 65 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"}
FLAG_ICONS={"delete" => "fa fa-trash", "template"=> "ffi1-cleaning1"}
FLAG_CONFIRM={}
scope :templates, ->{ where(flag_template:true)}
acts_as_flagable