Method: PostsController#show
- Defined in:
- app/controllers/posts_controller.rb
#show ⇒ Object
20 21 22 23 |
# File 'app/controllers/posts_controller.rb', line 20 def show @post = current_model.find_by_permalink_or_id(params[:id]) fresh_when(:etag => [@post, @post.comments]) unless current_user end |