Skip to content
  • Ryuta Kamizono's avatar
    87886c93
    Deprecate passing an Active Record object to `quote`/`type_cast` directly · 87886c93
    Ryuta Kamizono authored
    Follow up to #27962.
    
    #27962 only deprecated `quoted_id`, but still conservatively allowed
    passing an Active Record object.
    
    Since the quoting methods on a `connection` are low-level API and
    querying API does not rely on that ability, so people should pass casted
    value instead of an Active Record object if using the quoting methods
    directly.
    87886c93
    Deprecate passing an Active Record object to `quote`/`type_cast` directly
    Ryuta Kamizono authored
    Follow up to #27962.
    
    #27962 only deprecated `quoted_id`, but still conservatively allowed
    passing an Active Record object.
    
    Since the quoting methods on a `connection` are low-level API and
    querying API does not rely on that ability, so people should pass casted
    value instead of an Active Record object if using the quoting methods
    directly.
Loading