AutoCommit Don Aug 6 21:03:01 CEST 2015

This commit is contained in:
Andreas Stephanides
2015-08-06 21:03:01 +02:00
parent 390075aa7f
commit 0c0e7ba051
8 changed files with 13 additions and 7 deletions

View File

@@ -20,6 +20,7 @@ class Beispiel < ActiveRecord::Base
belongs_to :lecturer
FLAG_ICONS = {"badquality"=>"fa fa-flag","goodquality"=>"fa fa-flag", "delete"=>"fa fa-trash"}
FLAG_CONFIRM={}
scope :not_flag_badquality, ->{where("flag_badquality IS NULL OR flag_badquality=?",false)}
scope :flag_badquality, ->{where("flag_badquality=?",true)}
scope :not_flag_delete, ->{where("flag_delete IS NULL OR flag_delete=?",false)}