forked from bofh/fetsite
AutoCommit Son Sep 13 12:03:20 CEST 2015
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user