AutoCommit Son Sep 13 12:03:20 CEST 2015

This commit is contained in:
Andreas Stephanides
2015-09-13 12:03:21 +02:00
parent d85a01c810
commit b073a1a098
8 changed files with 39 additions and 10 deletions

View File

@@ -44,6 +44,12 @@ class Neuigkeit < ActiveRecord::Base
before_validation :sanitize
after_save :update_cache
attr_accessor :no_fallbacks
acts_as_flagable
FLAG_ICONS={"infoscreen" => "fa fa-flag"}
FLAG_CONFIRM={"infoscreen" => "Neuigkeit am Infoscreen anzeigen"}
def globalize_fallbacks(locale)
if self.no_fallbacks
[locale]