pundit: exclude topic action

This commit is contained in:
Connor Turland 2016-03-12 10:13:22 +11:00
parent c7075dab48
commit 09a7b336bf

View file

@ -2,7 +2,7 @@ class TopicsController < ApplicationController
include TopicsHelper
before_action :require_user, only: [:create, :update, :destroy]
after_action :verify_authorized
after_action :verify_authorized, except: :autocomplete_topic
respond_to :html, :js, :json