Skip to content

Instantly share code, notes, and snippets.

@robinboening
Last active August 29, 2015 14:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save robinboening/80fc60477d22e4043764 to your computer and use it in GitHub Desktop.
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
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