Class: ClWiki::SessionsController
Instance Method Summary
collapse
#authorized, #current_owner, #current_user, #expire_old_session, #initialize_index, #logged_in?
Instance Method Details
#create ⇒ Object
12
13
14
15
16
|
# File 'app/controllers/cl_wiki/sessions_controller.rb', line 12
def create
auth_user_and_setup_session ?
redirect_to(root_url) :
redirect_to(login_url)
end
|
#destroy ⇒ Object
18
19
20
21
|
# File 'app/controllers/cl_wiki/sessions_controller.rb', line 18
def destroy
reset_session
redirect_to login_url
end
|
#new ⇒ Object
9
10
|
# File 'app/controllers/cl_wiki/sessions_controller.rb', line 9
def new
end
|