mirror of
				https://github.com/fspc/BikeShed-1.git
				synced 2025-10-31 08:55:36 -04:00 
			
		
		
		
	define bike on all authenticated pages
This commit is contained in:
		
							parent
							
								
									9df3dfcfd5
								
							
						
					
					
						commit
						a4b6ca12f9
					
				| @ -1,3 +1,10 @@ | |||||||
| class AuthenticatedController < ApplicationController | class AuthenticatedController < ApplicationController | ||||||
|   before_filter :authenticate_user! |   before_filter :authenticate_user! | ||||||
|  | 
 | ||||||
|  |   before_filter :get_user_bike | ||||||
|  | 
 | ||||||
|  |   def get_user_bike | ||||||
|  |   	@bike = current_user.bike | ||||||
|  |   end | ||||||
|  | 
 | ||||||
| end | end | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user