app/controllers/phcpresspro/api/v1/posts_controller.rb in phcpresspro-22.2.0 vs app/controllers/phcpresspro/api/v1/posts_controller.rb in phcpresspro-23.0.0
- old
+ new
@@ -11,10 +11,10 @@
@article_posts = Article::Post.where(pststatus: 'published').order('created_at ASC')
end
# Article Show
def show
- @article_post = Article::Post.where(poststatus: published).find(params[:id])
+ @article_post = Article::Post.where(poststatus: 'published').find(params[:id])
end
end
end