Skip to content

Instantly share code, notes, and snippets.

@umar-webonise
Created June 15, 2015 06:13
Show Gist options
  • Save umar-webonise/655a59567528c5aec9b9 to your computer and use it in GitHub Desktop.
Save umar-webonise/655a59567528c5aec9b9 to your computer and use it in GitHub Desktop.
Work ignoring mongoid $oid
# Patch for mongoid to return $oid instead of active record id
class << self
def serialize_from_session(key, _salt)
to_adapter.get(key[0])
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment