local-ch / lhs

⚛️ REST services accelerator: Rails gem providing an easy, active-record-like interface for http (hypermedia) json services
GNU General Public License v3.0
137 stars 3 forks source link

Fix loading missing includes #399

Closed 10xSebastian closed 3 years ago

10xSebastian commented 3 years ago

This fixes an edge case where we include via 2 levels and the second level is missing.

 NoMethodError:
       undefined method `deep_merge' for nil:NilClass
     # ./lib/lhs/concerns/record/request.rb:32:in `block in deep_merge_with_option_blocks'
     # ./lib/lhs/concerns/record/request.rb:32:in `map'
     # ./lib/lhs/concerns/record/request.rb:32:in `deep_merge_with_op

https://rollbar.com/local.ch/opm/items/98256/