Skip to content
  • Jean Boussier's avatar
    c6944377
    Fix SimpleDelegator respond_to? regression · c6944377
    Jean Boussier authored
    In 2.6, SimpleDelegator would always use the target `respond_to?`
    
    In 2.7.0 it doesn't if the target does not inherit from Object.
    
    This breaks compatibility for delegated objects that inherit
    from BasicObject and redefine `respond_to?`. [Bug #16606]
    
    (cherry picked from commit f2552216)
    c6944377
    Fix SimpleDelegator respond_to? regression
    Jean Boussier authored
    In 2.6, SimpleDelegator would always use the target `respond_to?`
    
    In 2.7.0 it doesn't if the target does not inherit from Object.
    
    This breaks compatibility for delegated objects that inherit
    from BasicObject and redefine `respond_to?`. [Bug #16606]
    
    (cherry picked from commit f2552216)
Loading