• Matthias Kaeppler's avatar
    Drop OpenStruct use from FakeApplicationSettings · 25b4804a
    Matthias Kaeppler authored
    OpenStruct has been pointed out as problematic to use,
    and the way it is used here actually breaks under Ruby 3.
    
    We cannot override OpenStruct props through module
    methods anymore, due to OpenStruct defining methods
    eagerly in Ruby 3.
    
    Therefore, this patch drops the use of OpenStruct entirely
    in favor of some hand-rolled meta-programming that mimics
    OStruct behavior from 2.7 where relevant.
    25b4804a
fake_application_settings.rb 1.34 KB