Skip to content
Browse files

Fake current_user. Can now create history items, see user controls in…

… top right.
  • Loading branch information...
1 parent 102478e commit 0ee615942a93349c992fa83dbf2074beabe3b853 @gunn committed May 6, 2011
Showing with 5 additions and 0 deletions.
  1. +5 −0 app/controllers/application_controller.rb
View
5 app/controllers/application_controller.rb
@@ -1,3 +1,8 @@
class ApplicationController < ActionController::Base
protect_from_forgery
+ helper_method :current_user
+
+ def current_user
+ @current_user ||= User.first
+ end
end

0 comments on commit 0ee6159

Please sign in to comment.
Something went wrong with that request. Please try again.