Skip to content
  • abeidahmed's avatar
    c8caf6d8
    [Fix #49874] `has_secure_token` calls the setter method on initialize · c8caf6d8
    abeidahmed authored
    Follow-up to #49146
    
    The original behavior of `has_secure_token` was to use the
    `send("#{attribute}=", some_value)` method so that the setter method, if
    defined, was called. PR #49146 replaced the `send` method with
    `write_attribute` which doesn't call the setter method and breaks
    existing applications.
    c8caf6d8
    [Fix #49874] `has_secure_token` calls the setter method on initialize
    abeidahmed authored
    Follow-up to #49146
    
    The original behavior of `has_secure_token` was to use the
    `send("#{attribute}=", some_value)` method so that the setter method, if
    defined, was called. PR #49146 replaced the `send` method with
    `write_attribute` which doesn't call the setter method and breaks
    existing applications.
Loading