Skip to content

Commit

Permalink
Merge pull request #63 from jeremyf/wordsmithing
Browse files Browse the repository at this point in the history
Wordsmithing
  • Loading branch information
Trung Lê committed May 15, 2015
2 parents 66d9448 + c45e9fa commit dfdcb49
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ validator.valid? # => false
```

Bulk operations on errors are guaranteed by `#each`.
This method yields a **flatten collection of errors**.
This method yields a **flattened collection of errors**.

```ruby
validator.errors.each do |error|
Expand Down Expand Up @@ -483,9 +483,9 @@ end

### Errors

When you invoke `#valid?`, validations errors are available at `#errors`.
When you invoke `#valid?`, validation errors are available at `#errors`.
It's a set of errors grouped by attribute. Each error contains the name of the
invalid attribute, the failed validation, the expected value and the current one.
invalid attribute, the failed validation, the expected value, and the current one.

```ruby
require 'lotus/validations'
Expand Down Expand Up @@ -518,7 +518,7 @@ signup.errors

### Lotus::Entity

Integration with [`Lotus::Entity`](https://github.com/lotus/model) is activated automatically.
Integration with [`Lotus::Entity`](https://github.com/lotus/model) is straight forward.

```ruby
require 'lotus/model'
Expand Down

0 comments on commit dfdcb49

Please sign in to comment.