Proper nested records uniqueness validation
Test pass: test_create_duplicate_for_persisted_target_should_fail
This commit is contained in:
@@ -81,7 +81,8 @@ class TargetsController < ApplicationController
|
||||
:id,
|
||||
:quantity_id,
|
||||
:scope,
|
||||
:destroy,
|
||||
:effective_from,
|
||||
:_destroy,
|
||||
thresholds_attributes: [
|
||||
:id,
|
||||
:quantity_id,
|
||||
|
||||
Reference in New Issue
Block a user