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,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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
class CurrentOrders::OrdersController < ApplicationController
|
||||
|
||||
before_filter :authenticate_orders, except: :my
|
||||
before_action :authenticate_orders, except: :my
|
||||
|
||||
def show
|
||||
@doc_options ||= {}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
# encoding: utf-8
|
||||
class CurrentOrdersController < ApplicationController
|
||||
|
||||
before_filter :authenticate_orders
|
||||
|
||||
before_action :authenticate_orders
|
||||
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue