Skip to content

Commit

Permalink
Re-generate doc
Browse files Browse the repository at this point in the history
  • Loading branch information
Adrien Siami committed Dec 22, 2018
1 parent 0befbb0 commit fa1497a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion manual/cops_rails.md
Original file line number Diff line number Diff line change
Expand Up @@ -1096,7 +1096,7 @@ Enabled | Yes | No | 0.62 | -

This cop checks for calls to `link_to` that contain a
`target: '_blank'` but no `rel: 'noopener'`. This can be a security
risk as the loaded page will have control over the previous page
risk as the loaded page will have control over the previous page
and could change its location for phishing purposes.

### Examples
Expand All @@ -1109,6 +1109,10 @@ link_to 'Click here', url, target: '_blank'
link_to 'Click here', url, target: '_blank', rel: 'noopener'
```

### References

* [https://mathiasbynens.github.io/rel-noopener/](https://mathiasbynens.github.io/rel-noopener/)

## Rails/NotNullColumn

Enabled by default | Safe | Supports autocorrection | VersionAdded | VersionChanged
Expand Down

0 comments on commit fa1497a

Please sign in to comment.