skip api check for forum and comment endpoints

This commit is contained in:
Albert Yi
2017-01-10 15:06:34 -08:00
parent 63c218d71d
commit 8db970f9f3
3 changed files with 4 additions and 1 deletions

View File

@@ -2,6 +2,7 @@ class CommentsController < ApplicationController
respond_to :html, :xml, :json
before_filter :member_only, :except => [:index, :search, :show]
rescue_from ActiveRecord::StatementInvalid, :with => :rescue_exception
skip_before_filter :api_check
def index
if params[:group_by] == "comment"