Add current_nonprofit_user? as a helper_method

This commit is contained in:
Eric 2020-05-15 16:05:58 -05:00
parent 480ac12c64
commit 72e78babd9

View file

@ -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?