Sha256: 7423dd1d5a1820b3f802f33e3ad793b198e0222c665c6b96d09c0447e6532b3e
Contents?: true
Size: 396 Bytes
Versions: 14
Compression:
Stored size: 396 Bytes
Contents
class Forum < ActiveRecord::Base has_site if respond_to? :has_site has_many :topics, :dependent => :destroy default_scope :order => 'position ASC' named_scope :imported, :conditions => "old_id IS NOT NULL" validates_presence_of :name def dom_id "forum_#{self.id}" end def visible_to?(reader=nil) return true if reader || Radiant::Config['forum.public?'] end end
Version data entries
14 entries across 14 versions & 1 rubygems