Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix typo in Active Record Validations guide. [ci skip].

Closes #11498.

Conflicts:

	guides/source/active_record_validations.md
  • Loading branch information...
commit a5a20da33561ff0fb6c719f3c303329995dfd493 1 parent 62225ae
Yves Senn senny authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 guides/source/active_record_validations.md
8 guides/source/active_record_validations.md
View
@@ -120,8 +120,8 @@ database only if the object is valid:
* `update!`
The bang versions (e.g. `save!`) raise an exception if the record is invalid.
-The non-bang versions don't: `save` and `update` return `false`,
-`create` and `update` just return the objects.
+The non-bang versions don't, `save` and `update` return `false`,
+`create` just returns the object.
### Skipping Validations
@@ -677,13 +677,13 @@ class GoodnessValidator
def initialize(person)
@person = person
end
-
+
def validate
if some_complex_condition_involving_ivars_and_private_methods?
@person.errors[:base] << "This person is evil"
end
end
-
+
# …
end
```
Please sign in to comment.
Something went wrong with that request. Please try again.