Own-and-Ship / oas_agent

The Own & Ship Ruby agent
2 stars 0 forks source link

Stop us assigning nil to deprecators behaviour #41

Closed caius closed 10 months ago

caius commented 10 months ago

Only affects Rails >= 7.1, and only if nothing is configured for Rails.application.config.*.deprecations* settings.

Rails checks the object(s) assigned to behaviour respond appropriately, and nil doesn't. If we get back a nil from the deprecator options, we need to compact it before setting the behaviour for all.