routing-filter icon indicating copy to clipboard operation
routing-filter copied to clipboard

Journey parameters

Open anitagraham opened this issue 2 years ago • 1 comments

Running with Rails 7.1.3 and testing an active storage route I have been getting

   NoMethodError:
       undefined method `merge' for nil:NilClass
     # ./vendor/cache/ruby/3.2.0/gems/routing-filter-0.7.0/lib/routing_filter/adapters/routers/journey.rb:13:in `block in find_routes'
     # ./vendor/cache/ruby/3.2.0/gems/routing-filter-0.7.0/lib/routing_filter/adapters/routers/journey.rb:11:in `map'
     # ./vendor/cache/ruby/3.2.0/gems/routing-filter-0.7.0/lib/routing_filter/adapters/routers/journey.rb:11:in `find_routes'

Adding a default value of {} to parameters fixed this

anitagraham avatar Feb 19 '24 04:02 anitagraham

This PR should be closed in favor of https://github.com/svenfuchs/routing-filter/pull/87

johnnyshields avatar May 28 '24 09:05 johnnyshields