diff options
author | Xavier Noria <fxn@hashref.com> | 2019-03-07 10:50:15 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-07 10:50:15 +0100 |
commit | e056b9bfb07c4eb3bcc6672d885aadd72bec574f (patch) | |
tree | 0ccf64cdaef32c44316268463fb19c3bc91cb81a /activerecord/lib/active_record/validations | |
parent | a88b6f257b7c0df816181ce2c36bb7ecb6487a17 (diff) | |
parent | 755112c7b15ad5a8a8621ac307a55b6bbf487c7b (diff) | |
download | rails-e056b9bfb07c4eb3bcc6672d885aadd72bec574f.tar.gz rails-e056b9bfb07c4eb3bcc6672d885aadd72bec574f.tar.bz2 rails-e056b9bfb07c4eb3bcc6672d885aadd72bec574f.zip |
Merge pull request #35503 from samjohn/cannot-grammar-correction
Replace “can not” with “cannot”.
Diffstat (limited to 'activerecord/lib/active_record/validations')
-rw-r--r-- | activerecord/lib/active_record/validations/uniqueness.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/validations/uniqueness.rb b/activerecord/lib/active_record/validations/uniqueness.rb index 3172aa2078..2c3a2fb797 100644 --- a/activerecord/lib/active_record/validations/uniqueness.rb +++ b/activerecord/lib/active_record/validations/uniqueness.rb @@ -25,7 +25,7 @@ module ActiveRecord if finder_class.primary_key relation = relation.where.not(finder_class.primary_key => record.id_in_database) else - raise UnknownPrimaryKey.new(finder_class, "Can not validate uniqueness for persisted record without primary key.") + raise UnknownPrimaryKey.new(finder_class, "Cannot validate uniqueness for persisted record without primary key.") end end relation = scope_relation(record, relation) |