forked from bofh/fetsite
AutoCommit Die Jun 9 15:03:01 CEST 2015
This commit is contained in:
@@ -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?
|
||||
|
||||
Reference in New Issue
Block a user