Parent

Class/Module Index [+]

Quicksearch

Rubrik

Schema Information

Table name: rubriken

id         :integer          not null, primary key
name       :string(255)
desc       :text
prio       :integer
created_at :datetime         not null
updated_at :datetime         not null

Public Instance Methods

icon_name() click to toggle source
# File app/models/rubrik.rb, line 23
def icon_name
  (ActionController::Base.helpers.content_tag("i","", class: self.icon)) + self.name
end
moderator() click to toggle source
# File app/models/rubrik.rb, line 26
def moderator
  u=User.with_role(:newsmoderator).first
  if !u.nil? 
    u.id
  end
end
sanitize() click to toggle source
# File app/models/rubrik.rb, line 32
  def sanitize
    if self.calendar.nil?
      self.calendar=Calendar.new
   
      
end
   self.calendar.name=self.name
self.calendar.public=self.public
self.calendar.save
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.