Skip to content
This repository has been archived by the owner on Aug 2, 2018. It is now read-only.

Commit

Permalink
Fix authentication.
Browse files Browse the repository at this point in the history
  • Loading branch information
technicalpickles committed Dec 13, 2010
1 parent 1484f16 commit 087bf70
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions app/controllers/application_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,6 @@ class ApplicationController < ActionController::Base

protect_from_forgery

def sign_in(user)
if user
cookies[:remember_token] = {
:value => user.remember_token,
:expires => Clearance.configuration.cookie_expiration.call,
:secure => true
}
self.current_user = user
end
end

def set_mobile_format
if is_mobile_device? # && !request.xhr?
request.format = session[:mobile_view] == false ? :html : :mobile
Expand Down

0 comments on commit 087bf70

Please sign in to comment.