From 51c054e20031ba77ae285c38020fbddb15d19f55 Mon Sep 17 00:00:00 2001 From: "m. simon borg" Date: Wed, 10 May 2017 09:52:26 -0400 Subject: [PATCH] before_filter -> before_action `before_filter` is deprecated in favor of `before_action` and removed in Rails 5.1 --- app/controllers/impressionist_controller.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/impressionist_controller.rb b/app/controllers/impressionist_controller.rb index b92fcbf..4e21621 100644 --- a/app/controllers/impressionist_controller.rb +++ b/app/controllers/impressionist_controller.rb @@ -3,13 +3,13 @@ require 'digest/sha2' module ImpressionistController module ClassMethods def impressionist(opts={}) - before_filter { |c| c.impressionist_subapp_filter(opts) } + before_action { |c| c.impressionist_subapp_filter(opts) } end end module InstanceMethods def self.included(base) - base.before_filter :impressionist_app_filter + base.before_action :impressionist_app_filter end def impressionist(obj,message=nil,opts={})