From 740cbffd2ff7c529d19f57696da75aca3f3152ab Mon Sep 17 00:00:00 2001 From: Linus Marton Date: Fri, 18 Jan 2019 10:40:04 +0100 Subject: [PATCH] Update README --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index f5134fe..44198b3 100644 --- a/README.md +++ b/README.md @@ -195,6 +195,10 @@ class DashboardPolicy < Struct.new(:user, :dashboard) end ``` +Note that the headless policy still needs to accept two arguments. The +second argument will just be the symbol `:dashboard` in this case which +is what is passed as the record to `authorize` below. + ```ruby # In controllers authorize :dashboard, :show?