Permalink
Browse files

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

Closes #11498.

Conflicts:

	guides/source/active_record_validations.md
  • Loading branch information...
1 parent 62225ae commit a5a20da33561ff0fb6c719f3c303329995dfd493 @senny senny committed Jul 19, 2013
Showing with 4 additions and 4 deletions.
  1. +4 −4 guides/source/active_record_validations.md
@@ -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
```

0 comments on commit a5a20da

Please sign in to comment.