From fcc1165c271a65c6b93f705925391df700b778d8 Mon Sep 17 00:00:00 2001 From: James Prior Date: Thu, 11 Aug 2016 14:09:33 -0400 Subject: [PATCH] Make #controller available as a method Documentation::Authorizer the controller was set to `@controller` but there was no reader or accessor method defined which meant the examples didn't work --- lib/documentation/authorizer.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/documentation/authorizer.rb b/lib/documentation/authorizer.rb index 4481acf..d29a250 100644 --- a/lib/documentation/authorizer.rb +++ b/lib/documentation/authorizer.rb @@ -1,5 +1,6 @@ module Documentation class Authorizer + attr_reader :controller def initialize(controller) @controller = controller