From c9480ceffad4ac8c46948bba6a114bc6d04da23b Mon Sep 17 00:00:00 2001 From: Alex Antonov Date: Fri, 9 Oct 2015 12:08:15 +0300 Subject: [PATCH] Replace before_filter with before_action --- app/controller/redactor_rails/documents_controller.rb | 2 +- app/controller/redactor_rails/pictures_controller.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controller/redactor_rails/documents_controller.rb b/app/controller/redactor_rails/documents_controller.rb index 6419cc47..b0e8f517 100644 --- a/app/controller/redactor_rails/documents_controller.rb +++ b/app/controller/redactor_rails/documents_controller.rb @@ -1,5 +1,5 @@ class RedactorRails::DocumentsController < ApplicationController - before_filter :redactor_authenticate_user! + before_action :redactor_authenticate_user! def index @documents = RedactorRails.document_model.where( diff --git a/app/controller/redactor_rails/pictures_controller.rb b/app/controller/redactor_rails/pictures_controller.rb index 46103ba2..c447adb7 100644 --- a/app/controller/redactor_rails/pictures_controller.rb +++ b/app/controller/redactor_rails/pictures_controller.rb @@ -1,5 +1,5 @@ class RedactorRails::PicturesController < ApplicationController - before_filter :redactor_authenticate_user! + before_action :redactor_authenticate_user! def index @pictures = RedactorRails.picture_model.where(