Project

General

Profile

Actions

Refactor #12526

closed

Rails 4 - Investigate restrict_with_error vs. restrict_with_exception

Added by Chris Peters almost 9 years ago. Updated about 6 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
-
Target version:
Branch:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

Determine the intended behavior when failing to destroy an object. During the upgrade we tried to modify as little of the underlying behavior as possible to make the tests pass. There were certain situations were we had to make some assumptions on the intended behavior. Do a deep dive into the model relations and determine when errors should be raised vs. exceptions.

Actions

Also available in: Atom PDF