mirror of https://github.com/fspc/BikeShed-1.git
Brigitte Warner
10 years ago
1 changed files with 7 additions and 0 deletions
@ -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…
Reference in new issue