upgrade before_filter to new syntax

This commit is contained in:
rgarcia
2015-09-03 01:40:24 +02:00
parent 4897d5df4e
commit 10127f546e
7 changed files with 7 additions and 7 deletions

View File

@@ -1,7 +1,7 @@
class Admin::CommentsController < Admin::BaseController
has_filters %w{all with_confirmed_hide}
before_filter :load_comment, only: [:confirm_hide, :restore]
before_action :load_comment, only: [:confirm_hide, :restore]
def index
@comments = Comment.only_hidden.send(@current_filter).page(params[:page])