Skip to content

Instantly share code, notes, and snippets.

@baileylo
Created October 6, 2010 08:14
Show Gist options
  • Save baileylo/613003 to your computer and use it in GitHub Desktop.
Save baileylo/613003 to your computer and use it in GitHub Desktop.
class UserSession < Authlogic::Session::Base
def to_key
new_record? ? nil : [ self.send(self.class.primary_key) ]
end
def persisted?
false
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment