Skip to content

Commit

Permalink
fix resourceful routing paths to be acceptable to stricter Rails8
Browse files Browse the repository at this point in the history
can no longer mention paths that didn't apply anyway, it raises now.
  • Loading branch information
jrochkind committed Dec 12, 2024
1 parent 4206bd3 commit 5fe3aa5
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 5fe3aa5

Please sign in to comment.