1
0
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:
Brigitte Warner 2014-08-14 21:08:17 -04:00
parent 9df3dfcfd5
commit a4b6ca12f9

View File

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