From 8c89f1391d74dbd2b5061d0c3d2d8aed903527bb Mon Sep 17 00:00:00 2001 From: Igor Kapkov Date: Sun, 9 Mar 2014 23:01:53 +0400 Subject: [PATCH] hide unused actions --- lib/pundit.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/pundit.rb b/lib/pundit.rb index 4d6ab5f..a78f1a3 100644 --- a/lib/pundit.rb +++ b/lib/pundit.rb @@ -40,6 +40,10 @@ module Pundit helper_method :pundit_user end if respond_to?(:hide_action) + hide_action :policy_scope + hide_action :policy_scope= + hide_action :policy + hide_action :policy= hide_action :authorize hide_action :verify_authorized hide_action :verify_policy_scoped