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