From 670e394e091e416e7c2cf299a988b10e7c3c7b36 Mon Sep 17 00:00:00 2001 From: Thomas Sunde Nielsen Date: Tue, 16 Jan 2018 13:32:31 +0100 Subject: [PATCH] Remove "simply" and "easy" from documentation Using words like "simply" and "easy" in documentation only serves to frustrate new users and does not serve any functional purpose. https://css-tricks.com/words-avoid-educational-writing/ --- docs/13-authorization-adapter.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/13-authorization-adapter.md b/docs/13-authorization-adapter.md index a7aba2929d4..027357283c7 100644 --- a/docs/13-authorization-adapter.md +++ b/docs/13-authorization-adapter.md @@ -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 @@ -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 @@ -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