before_action

This commit is contained in:
Jonne Haß 2014-02-10 01:13:41 +01:00
parent 7fd2294111
commit da9c1db14f

View file

@ -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