Skip to content

Commit

Permalink
Merge pull request #2802 from sciencehistory/strict_resourceful_routing
Browse files Browse the repository at this point in the history
fix resourceful routing paths to be acceptable to stricter Rails8
  • Loading branch information
jrochkind authored Dec 12, 2024
2 parents 4206bd3 + 5fe3aa5 commit bf6357f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ def self.matches?(request)
# TODO: Can we get away without actuallymounting Blacklight, just using the CatalogController?
# mount Blacklight::Engine => '/'
concern :searchable, Blacklight::Routes::Searchable.new
resource :catalog, only: [:index], as: 'catalog', path: '/catalog', controller: 'catalog' do
resource :catalog, only: [], as: 'catalog', path: '/catalog', controller: 'catalog' do
concerns :searchable
concerns :range_searchable # for blacklight_range_limit
end
Expand Down Expand Up @@ -345,7 +345,7 @@ def self.matches?(request)


#Cart:
resources :cart_items, param: :work_friendlier_id, only: [:index, :update, :destroy, :report] do
resources :cart_items, param: :work_friendlier_id, only: [:index, :update, :destroy] do
collection do
delete 'clear'
post 'report'
Expand Down

0 comments on commit bf6357f

Please sign in to comment.