aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/locale
diff options
context:
space:
mode:
authorManoj <manoj.mk27@gmail.com>2012-02-01 23:55:01 +0530
committerManoj <manoj.mk27@gmail.com>2012-02-01 23:58:20 +0530
commit907d19343ebe2f0807337e0fda83b23076f87383 (patch)
treeb7c989d3754933a83fa8f7f9576ae09c71357a14 /activerecord/lib/active_record/locale
parent049dc500b632ca1a05d41a0c5454946f24d15035 (diff)
downloadrails-907d19343ebe2f0807337e0fda83b23076f87383.tar.gz
rails-907d19343ebe2f0807337e0fda83b23076f87383.tar.bz2
rails-907d19343ebe2f0807337e0fda83b23076f87383.zip
fix has_one, has_many restrict error message
Diffstat (limited to 'activerecord/lib/active_record/locale')
-rw-r--r--activerecord/lib/active_record/locale/en.yml4
1 files changed, 3 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/locale/en.yml b/activerecord/lib/active_record/locale/en.yml
index 8892f7ef2f..896132d566 100644
--- a/activerecord/lib/active_record/locale/en.yml
+++ b/activerecord/lib/active_record/locale/en.yml
@@ -10,7 +10,9 @@ en:
messages:
taken: "has already been taken"
record_invalid: "Validation failed: %{errors}"
- restrict_dependent_destroy: "Cannot delete record because dependent %{model} exists"
+ restrict_dependent_destroy:
+ 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.
# You can define own errors for models or model attributes.