Sha256: 99e59bb2f027b4dfbe1d409fc41053d0cbb483c964aeb42e5848f7414af34118
Contents?: true
Size: 435 Bytes
Versions: 4
Compression:
Stored size: 435 Bytes
Contents
module ForumReadersController def self.included(base) base.class_eval do helper :forum 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
4 entries across 4 versions & 1 rubygems