Change deprecated *_filter methods to *_action

This commit is contained in:
Patrick Gansterer 2019-10-28 21:11:35 +01:00
parent bee671c90e
commit 2100c738af
39 changed files with 66 additions and 66 deletions

View file

@ -1,12 +1,12 @@
# Controller concern to handle foodcoop scope
#
# Includes a +before_filter+ for selecting foodcoop from url.
# Includes a +before_action+ for selecting foodcoop from url.
#
module Concerns::FoodcoopScope
extend ActiveSupport::Concern
included do
before_filter :select_foodcoop
before_action :select_foodcoop
end
private

View file

@ -2,7 +2,7 @@ module Concerns::Locale
extend ActiveSupport::Concern
included do
before_filter :set_locale
before_action :set_locale
end
def explicitly_requested_language