before_filter -> before_action
`before_filter` is deprecated in favor of `before_action` and removed in Rails 5.1
This commit is contained in:
parent
800c24ec64
commit
51c054e200
|
@ -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={})
|
||||||
|
|
Loading…
Reference in New Issue