diff options
author | Samantha John <sam@gethopscotch.com> | 2019-03-06 16:35:52 -0500 |
---|---|---|
committer | Samantha John <sam@gethopscotch.com> | 2019-03-06 16:35:52 -0500 |
commit | 755112c7b15ad5a8a8621ac307a55b6bbf487c7b (patch) | |
tree | 0066a1b2862ccc596f8bf256582a12e6c0da0f85 /activerecord/lib/active_record/validations | |
parent | 134eaca7e2f32651eb5bbbcbea8fb990bff22b08 (diff) | |
download | rails-755112c7b15ad5a8a8621ac307a55b6bbf487c7b.tar.gz rails-755112c7b15ad5a8a8621ac307a55b6bbf487c7b.tar.bz2 rails-755112c7b15ad5a8a8621ac307a55b6bbf487c7b.zip |
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 dc1be73a60..7451c15938 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) |