Skip to content

Instantly share code, notes, and snippets.

View meliho's full-sized avatar

Melih Onvural meliho

View GitHub Profile
@benmoss
benmoss / AuthenticationHelpers.rb
Created April 22, 2011 18:54
Authlogic UserSessionsController
module AuthenticationHelpers
private
def current_user_session
return @current_user_session if defined?(@current_user_session)
@current_user_session = UserSession.find
end
def current_user