Skip to content
  • Sean Griffin's avatar
    b63701e2
    `update_columns` raises if the column is unknown · b63701e2
    Sean Griffin authored
    Previosly, `update_columns` would just take whatever keys you gave it
    and tried to run the update query. Most likely this would result in an
    error from the database. However, if the column actually did exist, but
    was in `ignored_columns`, this would result in the method returning
    successfully when it should have raised, and an attribute that should
    not exist written to `@attributes`.
    b63701e2
    `update_columns` raises if the column is unknown
    Sean Griffin authored
    Previosly, `update_columns` would just take whatever keys you gave it
    and tried to run the update query. Most likely this would result in an
    error from the database. However, if the column actually did exist, but
    was in `ignored_columns`, this would result in the method returning
    successfully when it should have raised, and an attribute that should
    not exist written to `@attributes`.
Loading