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,8 +1,8 @@
# encoding: utf-8
class CurrentOrders::ArticlesController < ApplicationController
before_filter :authenticate_orders
before_filter :find_order_and_order_article, only: [:index, :show]
before_action :authenticate_orders
before_action :find_order_and_order_article, only: [:index, :show]
def index
# sometimes need to pass id as parameter for forms

View file

@ -1,6 +1,6 @@
class CurrentOrders::GroupOrdersController < ApplicationController
# Security
before_filter :ensure_ordergroup_member
before_action :ensure_ordergroup_member
def index
# XXX code duplication lib/foodsoft_current_orders/app/controllers/current_orders/ordergroups_controller.rb

View file

@ -1,8 +1,8 @@
# encoding: utf-8
class CurrentOrders::OrdergroupsController < ApplicationController
before_filter :authenticate_orders
before_filter :find_group_orders, only: [:index, :show]
before_action :authenticate_orders
before_action :find_group_orders, only: [:index, :show]
def index
# sometimes need to pass id as parameter for forms

View file

@ -1,6 +1,6 @@
class CurrentOrders::OrdersController < ApplicationController
before_filter :authenticate_orders, except: :my
before_action :authenticate_orders, except: :my
def show
@doc_options ||= {}

View file

@ -1,6 +1,6 @@
# encoding: utf-8
class CurrentOrdersController < ApplicationController
before_filter :authenticate_orders
before_action :authenticate_orders
end