Change deprecated *_filter methods to *_action
This commit is contained in:
parent
bee671c90e
commit
2100c738af
39 changed files with 66 additions and 66 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue