Skip to content

Commit

Permalink
Fix NoMethodError in order cycles index
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
frank-west-iii committed Jun 18, 2018
1 parent f272a7b commit f2e1caa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/admin/order_cycles_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit f2e1caa

Please sign in to comment.