Skip to content

Commit

Permalink
Fix a typo (rubocop#191)
Browse files Browse the repository at this point in the history
  • Loading branch information
vadimstroganov authored and bbatsov committed Jul 23, 2016
1 parent 5603729 commit b16714c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -651,7 +651,7 @@ render status: :forbidden
```

* <a name="save-bang"></a>
When persisting AR objects always use the exception raising bang! method or handle the method return value.
When persisting AR objects always use the exception raising bang! method or handle the method return value.
This applies to `create`, `save`, `update`, `destroy`, `first_or_create` and `find_or_create_by`.
<sup>[[link](#save-bang)]</sup>

Expand Down Expand Up @@ -765,7 +765,7 @@ when you need to retrieve a single record by some attributes.
<sup>[[link](#squished-heredocs)]</sup>

```Ruby
User.find_by_sql(<<SQL.squish)
User.find_by_sql(<<-SQL.squish)
SELECT
users.id, accounts.plan
FROM
Expand Down

0 comments on commit b16714c

Please sign in to comment.