Fix NoMethodError in order cycles index

When a user's session has timed out and they try to load new data on the
order cycles page by changing filters, the application throws a
`NoMethodError` because we are prepending the load data method before
checking the user's session.

We can fix this by removing the prepend on this action.
This commit is contained in:
Frank West
2018-06-15 08:27:26 -07:00
parent f272a7b604
commit f2e1caabff

View File

@@ -6,7 +6,7 @@ module Admin
class OrderCyclesController < ResourceController
include OrderCyclesHelper
prepend_before_filter :load_data_for_index, :only => :index
before_filter :load_data_for_index, only: :index
before_filter :require_coordinator, only: :new
before_filter :remove_protected_attrs, only: [:update]
before_filter :check_editable_schedule_ids, only: [:create, :update]