Sha256: bfd5d4823f7efaa8078f526cabc92533de7e4c861209482dd9ddb26a0429e791

Contents?: true

Size: 219 Bytes

Versions: 8

Compression:

Stored size: 219 Bytes

Contents

module ForumReader

  def self.included(base)
    base.class_eval {
      has_many :topics, :dependent => :nullify
      has_many :posts, :order => 'posts.created_at desc', :dependent => :nullify
    }
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
radiant-forum-extension-2.0.1 lib/forum_reader.rb
radiant-forum-extension-2.0.0 lib/forum_reader.rb
radiant-forum-extension-1.2.1 lib/forum_reader.rb
radiant-forum-extension-1.1.2 lib/forum_reader.rb
radiant-forum-extension-1.1.1 lib/forum_reader.rb
radiant-forum-extension-1.1.0 lib/forum_reader.rb
radiant-forum-extension-0.6.1 lib/forum_reader.rb
radiant-forum-extension-0.6.0 lib/forum_reader.rb