Last active
          August 29, 2015 14:02 
        
      - 
      
- 
        Save robinboening/80fc60477d22e4043764 to your computer and use it in GitHub Desktop. 
    Retrieve certain Alchemy::Elements from certain/default Alchemy::Site with same language_code
  
        
  
    
      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
    
  
  
    
  | Alchemy::Element.joins(:page => :language).where(alchemy_languages: {language_code: @language.language_code, site_id: Alchemy::Site.default}, name: 'superhero').available | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment