Sha256: 1d43f9bdb1715b1f713c59ef8571f1879369fc6c8a99fc4e2af4dea7a4934bda
Contents?: true
Size: 414 Bytes
Versions: 2
Compression:
Stored size: 414 Bytes
Contents
module ForumReadersController def self.included(base) base.class_eval do alias_method_chain :show, :forum end end def show_with_forum @reader = Reader.find(params[:id]) @posts = Post.paginate_by_reader_id(@reader.id, :page => params[:page], :include => :topic, :order => 'posts.created_at desc') if @reader render :template => 'readers/show_with_posts' end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
radiant-forum-extension-0.6.1 | lib/forum_readers_controller.rb |
radiant-forum-extension-0.6.0 | lib/forum_readers_controller.rb |