Parent

Class/Module Index [+]

Quicksearch

Themengruppe

Schema Information

Table name: themengruppen

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

Constants

WORD_COUNT

Public Class Methods

find_wiki_default() click to toggle source
# File app/models/themengruppe.rb, line 29
def self.find_wiki_default
  where(:wiki_default=>true).first
end

Public Instance Methods

intern() click to toggle source
# File app/models/themengruppe.rb, line 32
  def intern
    ! self.public
end
make_wiki_default() click to toggle source
# File app/models/themengruppe.rb, line 35
def make_wiki_default
  Themengruppe.where(:wiki_default=>:true).update_all(:wiki_default=>:false)
  self.wiki_default=true;
  self.save;
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.