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 | module Controllers::Nonprofit::Current | ||||||
|     extend ActiveSupport::Concern |     extend ActiveSupport::Concern | ||||||
|     included do |     included do | ||||||
|         private |         helper_method :current_nonprofit_user?  | ||||||
|  | 
 | ||||||
|         def current_nonprofit |         def current_nonprofit | ||||||
|             @nonprofit = current_nonprofit_without_exception |             @nonprofit = current_nonprofit_without_exception | ||||||
|             raise ActionController::RoutingError, 'Nonprofit not found' if @nonprofit.nil? |             raise ActionController::RoutingError, 'Nonprofit not found' if @nonprofit.nil? | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Eric
						Eric