From da9c1db14f933640756dc4e8aa933ee7a8608012 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonne=20Ha=C3=9F?= Date: Mon, 10 Feb 2014 01:13:41 +0100 Subject: [PATCH] before_action --- app/controllers/posts_controller.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/controllers/posts_controller.rb b/app/controllers/posts_controller.rb index 56858f03e..9ecd50c3a 100644 --- a/app/controllers/posts_controller.rb +++ b/app/controllers/posts_controller.rb @@ -7,6 +7,7 @@ class PostsController < ApplicationController before_action :authenticate_user!, :except => [:show, :iframe, :oembed, :interactions] before_action :set_format_if_malformed_from_status_net, :only => :show + before_action :find_post, :only => [:show, :interactions] use_bootstrap_for :show