From 227c0af20bef76a1dbe661da28e39140ee65eed6 Mon Sep 17 00:00:00 2001 From: Wojciech Zawistowski Date: Mon, 24 Feb 2014 18:03:29 +0100 Subject: [PATCH] Removes unnecessary instance vars. --- app/controllers/posts_controller.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/controllers/posts_controller.rb b/app/controllers/posts_controller.rb index f9c7c01e1..42fb30164 100644 --- a/app/controllers/posts_controller.rb +++ b/app/controllers/posts_controller.rb @@ -113,13 +113,13 @@ class PostsController < ApplicationController end def show - @post = find_post_from_params - display_post(@post) + post = find_post_from_params + display_post(post) end def by_number - @post = find_post_from_params_by_number - display_post(@post) + post = find_post_from_params_by_number + display_post(post) end def reply_history