before_filter -> before_action

`before_filter` is deprecated in favor of `before_action` and removed in Rails 5.1
This commit is contained in:
m. simon borg 2017-05-10 09:52:26 -04:00 committed by GitHub
parent 800c24ec64
commit 51c054e200
1 changed files with 2 additions and 2 deletions

View File

@ -3,13 +3,13 @@ require 'digest/sha2'
module ImpressionistController module ImpressionistController
module ClassMethods module ClassMethods
def impressionist(opts={}) def impressionist(opts={})
before_filter { |c| c.impressionist_subapp_filter(opts) } before_action { |c| c.impressionist_subapp_filter(opts) }
end end
end end
module InstanceMethods module InstanceMethods
def self.included(base) def self.included(base)
base.before_filter :impressionist_app_filter base.before_action :impressionist_app_filter
end end
def impressionist(obj,message=nil,opts={}) def impressionist(obj,message=nil,opts={})