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

Version Path
radiant-forum-extension-2.1.4 app/models/forum.rb
radiant-forum-extension-2.1.3 app/models/forum.rb
radiant-forum-extension-2.1.2 app/models/forum.rb
radiant-forum-extension-2.1.1 app/models/forum.rb
radiant-forum-extension-2.0.9 app/models/forum.rb
radiant-forum-extension-2.0.8 app/models/forum.rb
radiant-forum-extension-2.0.7 app/models/forum.rb
radiant-forum-extension-2.0.6 app/models/forum.rb
radiant-forum-extension-2.0.5 app/models/forum.rb
radiant-forum-extension-2.0.4 app/models/forum.rb
radiant-forum-extension-2.0.3 app/models/forum.rb
radiant-forum-extension-2.0.2 app/models/forum.rb
radiant-forum-extension-2.0.1 app/models/forum.rb
radiant-forum-extension-2.0.0 app/models/forum.rb