Drop OpenStruct use from FakeApplicationSettings
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.
Showing
Please register or sign in to comment