upgrade before_filter to new syntax
This commit is contained in:
@@ -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])
|
||||
|
||||
Reference in New Issue
Block a user