Sha256: 5f8b8a03474bc142d961d29c120fd90793e5d995a336dc202193fc959ffeed5e
Contents?: true
Size: 507 Bytes
Versions: 1
Compression:
Stored size: 507 Bytes
Contents
class Forum < ActiveRecord::Base has_site if respond_to? :has_site has_many :topics, :dependent => :destroy default_scope :order => 'name ASC' named_scope :imported, :conditions => "old_id IS NOT NULL" validates_presence_of :name # other extensions can attach chains here to limit access def self.visible_to(reader) self.scoped end 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
radiant-forum-extension-2.1.6 | app/models/forum.rb |