Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #4830 from rafaelfranca/restrict-fix

Fix typo
  • Loading branch information...
commit ab58c5e6640636b7d3ea7f50edfa368cc75fc56b 2 parents 33d8b62 + 9b1d54e
Aaron Patterson tenderlove authored
2  activerecord/lib/active_record/locale/en.yml
View
@@ -11,7 +11,7 @@ en:
taken: "has already been taken"
record_invalid: "Validation failed: %{errors}"
restrict_dependent_destroy:
- one: "Cannot delete record because a dependent %{record} exist"
+ one: "Cannot delete record because a dependent %{record} exists"
many: "Cannot delete record because dependent %{record} exist"
# Append your own errors here or at the model/attributes scope.
4 activerecord/test/cases/associations/has_one_associations_test.rb
View
@@ -184,7 +184,7 @@ def test_dependence_with_restrict_with_dependent_restrict_raises_config_set_to_f
firm.destroy
assert !firm.errors.empty?
- assert_equal "Cannot delete record because a dependent account exist", firm.errors[:base].first
+ assert_equal "Cannot delete record because a dependent account exists", firm.errors[:base].first
assert RestrictedFirm.exists?(:name => 'restrict')
assert firm.account.present?
ensure
@@ -207,7 +207,7 @@ def test_dependence_with_restrict_with_dependent_restrict_raises_config_set_to_f
firm.destroy
assert !firm.errors.empty?
- assert_equal "Cannot delete record because a dependent account model exist", firm.errors[:base].first
+ assert_equal "Cannot delete record because a dependent account model exists", firm.errors[:base].first
assert RestrictedFirm.exists?(:name => 'restrict')
assert firm.account.present?
ensure
Please sign in to comment.
Something went wrong with that request. Please try again.