From 6b0148ff7c99b3f9cd0d758e760a491c463eb764 Mon Sep 17 00:00:00 2001 From: Will Schive Date: Wed, 29 Jan 2014 07:57:55 -0800 Subject: [PATCH] minor edits for consistency, readability --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index d71e293..644fc35 100644 --- a/README.md +++ b/README.md @@ -137,7 +137,7 @@ class ApplicationController < ActionController::Base end ``` -Likewise, pundit also adds `verify_policy_scoped` to your controller. This +Likewise, Pundit also adds `verify_policy_scoped` to your controller. This will raise an exception in the vein of `verify_authorized`. However it tracks if `policy_scoped` is used instead of `authorize`. This is mostly useful for controller actions like `index` which find collections with a scope and don't @@ -306,10 +306,10 @@ Pundit.policy_scope(user, Post) The bang methods will raise an exception if the policy does not exist, whereas those without the bang will return nil. -## Customize pundit user +## Customize Pundit user In some cases your controller might not have access to `current_user`, or your -`current_user` is not the method one that should be invoked by pundit. Simply +`current_user` is not the method that should be invoked by Pundit. Simply define a method in your controller called `pundit_user`. ```ruby