Sha256: 33cd64109eff6da55470a506bc934cf81049f1db0454f4b9f1244f95a18a63c5

Contents?: true

Size: 315 Bytes

Versions: 2

Compression:

Stored size: 315 Bytes

Contents

module Hitchens
  class PostsController < ApplicationController
    load_and_authorize_resource

    def index
      @posts = @posts.page(params[:page]).per_page(Hitchens.posts_per_page)
      @posts = PostDecorator.decorate @posts
    end

    def show
      @post = PostDecorator.decorate @post
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
hitchens-0.0.3 app/controllers/hitchens/posts_controller.rb
hitchens-0.0.2 app/controllers/hitchens/posts_controller.rb