Kill trailing whitespace in ruby files
This commit is contained in:
@@ -2,24 +2,24 @@ class SessionsController < ApplicationController
|
||||
def new
|
||||
@user = User.new
|
||||
end
|
||||
|
||||
|
||||
def create
|
||||
session_creator = SessionCreator.new(session, cookies, params[:name], params[:password], params[:remember])
|
||||
|
||||
|
||||
if session_creator.authenticate
|
||||
redirect_to(params[:url] || session[:previous_uri] || posts_path, :notice => "You are now logged in.")
|
||||
else
|
||||
redirect_to(new_session_path, :notice => "Password was incorrect.")
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
def destroy
|
||||
session.delete(:user_id)
|
||||
cookies.delete(:cookie_password_hash)
|
||||
cookies.delete(:user_name)
|
||||
redirect_to(posts_path, :notice => "You are now logged out.")
|
||||
end
|
||||
|
||||
|
||||
def sign_out
|
||||
destroy()
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user