Browse Source

define bike on all authenticated pages

menu-feature
Brigitte Warner 11 years ago
parent
commit
a4b6ca12f9
  1. 7
      app/controllers/authenticated_controller.rb

7
app/controllers/authenticated_controller.rb

@ -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…
Cancel
Save