AutoCommit Die Jun 9 15:03:01 CEST 2015

This commit is contained in:
Andreas Stephanides
2015-06-09 15:03:01 +02:00
parent d146cf09a7
commit e70cc8405f
2 changed files with 9 additions and 2 deletions

View File

@@ -20,6 +20,9 @@ class Rubrik < ActiveRecord::Base
has_one :calendar
validates :calendar , :presence=>true
before_validation :sanitize
def icon_name
(ActionController::Base.helpers.content_tag("i","", class: self.icon)) + self.name
end
def moderator
u=User.with_role(:newsmoderator).first
if !u.nil?