Skip to content

Commit

Permalink
Merge pull request #5321 from thomassnielsen/patch-1
Browse files Browse the repository at this point in the history
Remove "simply" and "easy" from documentation
  • Loading branch information
varyonic committed Jan 18, 2018
2 parents d19b303 + 670e394 commit 7f38dd5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/13-authorization-adapter.md
Expand Up @@ -10,8 +10,8 @@ taken. By default, '#authorized?' returns true.

## Setting up your own AuthorizationAdapter

Setting up your own `AuthorizationAdapter` is easy! The following example shows
how to set up and tie your authorization adapter class to Active Admin:
The following example shows how to set up and tie your authorization
adapter class to Active Admin:

```ruby
# app/models/only_authors_authorization.rb
Expand Down Expand Up @@ -136,7 +136,7 @@ Each of these actions is available as a constant. Eg: `:read` is available as
Active Admin provides a helper method to check if the current user is
authorized to perform an action on a subject.

Simply use the `#authorized?(action, subject)` method to check.
Use the `#authorized?(action, subject)` method to check.

```ruby
ActiveAdmin.register Post do
Expand Down Expand Up @@ -183,7 +183,7 @@ it's nicer to have a simpler DSL for managing authorization. Active Admin
provides an adapter out of the box for [CanCan](https://github.com/ryanb/cancan)
and [CanCanCan](https://github.com/CanCanCommunity/cancancan).

To use the CanCan adapter, simply update the configuration in the Active Admin
To use the CanCan adapter, update the configuration in the Active Admin
initializer:

```ruby
Expand Down

0 comments on commit 7f38dd5

Please sign in to comment.