Add current_nonprofit_user? as a helper_method
This commit is contained in:
parent
480ac12c64
commit
72e78babd9
1 changed files with 2 additions and 1 deletions
|
@ -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?
|
||||
|
|
Loading…
Reference in a new issue