Question: Given this Category model with an attribute for "name", what code would fill in the blank so that it sets saved_name to a string that is the category name that existed before the name was changed?

  1. category.name_was
  2. category.saved(:name)
  3. category.changes[:name]
  4. category.name_changed?

Answer: The correct answer of the above question is Option C:category.changes[:name]