app/controllers/monologue/posts_controller.rb in monologue-0.4.0 vs app/controllers/monologue/posts_controller.rb in monologue-0.4.1
- old
+ new
@@ -1,8 +1,8 @@
class Monologue::PostsController < Monologue::ApplicationController
def index
@page = params[:page].nil? ? 1 : params[:page]
- @posts = Monologue::Post.published.page(@page)
+ @posts = Monologue::Post.page(@page).published
end
def show
if monologue_current_user
@post = Monologue::Post.default.where("url = :url", {url: params[:post_url]}).first