From 0c080386effbe0345850ee832ed60b1ba7c139b6 Mon Sep 17 00:00:00 2001 From: Christoph Haas Date: Thu, 6 Apr 2017 12:53:45 +0200 Subject: [PATCH] before_filter -> before_yction --- app/controllers/application_controller.rb | 2 +- app/controllers/users_controller.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 47230f2..3490846 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -6,7 +6,7 @@ class ApplicationController < ActionController::Base # Do not mention passwords in the log file # filter_parameter_logging :password - before_filter :get_current_users_screenshots + before_action :get_current_users_screenshots # Query for packages that were uploaded by the current user. # As AAA is not yet implemented it means looking for uploads diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb index 196391e..be17fbd 100644 --- a/app/controllers/users_controller.rb +++ b/app/controllers/users_controller.rb @@ -1,6 +1,6 @@ class UsersController < ApplicationController - before_filter :require_user, :only => [:show, :edit, :update] + before_action :require_user, :only => [:show, :edit, :update] def new @user = User.new