Created
          June 15, 2015 06:13 
        
      - 
      
- 
        Save umar-webonise/655a59567528c5aec9b9 to your computer and use it in GitHub Desktop. 
    Work ignoring mongoid $oid
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | # 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