aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/locale
diff options
context:
space:
mode:
authorChristopher Dell <chris@tigrish.com>2013-07-13 02:52:13 +0200
committerChristopher Dell <chris@tigrish.com>2013-07-13 02:52:13 +0200
commit26c2620a533fd03441c0edd994c6d153f4a3f3f5 (patch)
treefef84e8465d72b28330f72f5fc0513aab66b6cb5 /activerecord/lib/active_record/locale
parent3af7b16c114802acdf0c0e7a34837a7a454fd23f (diff)
downloadrails-26c2620a533fd03441c0edd994c6d153f4a3f3f5.tar.gz
rails-26c2620a533fd03441c0edd994c6d153f4a3f3f5.tar.bz2
rails-26c2620a533fd03441c0edd994c6d153f4a3f3f5.zip
Remove ambiguity with pluralizations and I18n keys used for association restrict_dependent_destroy errors
Diffstat (limited to 'activerecord/lib/active_record/locale')
-rw-r--r--activerecord/lib/active_record/locale/en.yml4
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/locale/en.yml b/activerecord/lib/active_record/locale/en.yml
index b1fbd38622..3a81e15532 100644
--- a/activerecord/lib/active_record/locale/en.yml
+++ b/activerecord/lib/active_record/locale/en.yml
@@ -15,8 +15,8 @@ en:
messages:
record_invalid: "Validation failed: %{errors}"
restrict_dependent_destroy:
- one: "Cannot delete record because a dependent %{record} exists"
- many: "Cannot delete record because dependent %{record} exist"
+ has_one: "Cannot delete record because a dependent %{record} exists"
+ has_many: "Cannot delete record because dependent %{record} exist"
# Append your own errors here or at the model/attributes scope.
# You can define own errors for models or model attributes.