From 72e78babd94fd7c7952e307f56558fe317179454 Mon Sep 17 00:00:00 2001 From: Eric Date: Fri, 15 May 2020 16:05:58 -0500 Subject: [PATCH] Add current_nonprofit_user? as a helper_method --- app/controllers/concerns/controllers/nonprofit/current.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/controllers/concerns/controllers/nonprofit/current.rb b/app/controllers/concerns/controllers/nonprofit/current.rb index ce4718db..14940031 100644 --- a/app/controllers/concerns/controllers/nonprofit/current.rb +++ b/app/controllers/concerns/controllers/nonprofit/current.rb @@ -4,7 +4,8 @@ module Controllers::Nonprofit::Current extend ActiveSupport::Concern included do - private + helper_method :current_nonprofit_user? + def current_nonprofit @nonprofit = current_nonprofit_without_exception raise ActionController::RoutingError, 'Nonprofit not found' if @nonprofit.nil?