This repository has been archived on 2020-05-27. You can view files and clone it, but cannot push or open issues/pull-requests.
binaryattraction/app/controllers/application.rb

10 lines
168 B
Ruby
Raw Normal View History

2008-10-01 02:19:35 -04:00
class Application < Merb::Controller
def current_user
(@user ||= User.find(session[:user_id]))
end
def reset_session
session[:user_id] = nil
end
end