Created
          November 12, 2016 14:01 
        
      - 
      
- 
        Save 8parth/3194466c1a75125aef65bcaa4259258f to your computer and use it in GitHub Desktop. 
    example with nested includes
  
        
  
    
      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
    
  
  
    
  | def index | |
| @users = User.all.includes(:posts => [:comments]) | |
| render json: @users | |
| end | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment