Skip to content

Commit

Permalink
on -> only
Browse files Browse the repository at this point in the history
  • Loading branch information
mjy committed Apr 24, 2019
1 parent f10b996 commit 408a663
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/controllers/otus_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ class OtusController < ApplicationController
include DataControllerConfiguration::ProjectDataControllerConfiguration

before_action :set_otu, only: [:show, :edit, :update, :destroy, :collection_objects]
after_action -> { set_pagination_headers(:otus) }, on: [:index], if: :json_request?
after_action -> { set_pagination_headers(:otus) }, only: [:index], if: :json_request?

# GET /otus
# GET /otus.json
Expand Down
2 changes: 1 addition & 1 deletion app/controllers/people_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ class PeopleController < ApplicationController
include DataControllerConfiguration::SharedDataControllerConfiguration

before_action :set_person, only: [:show, :edit, :update, :destroy, :roles, :similar]
after_action -> { set_pagination_headers(:people) }, on: [:index], if: :json_request?
after_action -> { set_pagination_headers(:people) }, only: [:index], if: :json_request?

# GET /people
# GET /people.json
Expand Down

0 comments on commit 408a663

Please sign in to comment.