Created
September 6, 2016 14:12
-
-
Save thescubageek/191a04d958fda588b55abc3c9c4d4fe9 to your computer and use it in GitHub Desktop.
This file contains 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
## G5 Hub | |
def get_urn(url) | |
url.gsub("https://","").gsub(".herokuapp.com","") | |
end | |
## Find all internal clients | |
Client.where(g5_internal: true).map { |c| get_urn(c.cms_url) } | |
## Find all real clients | |
Client.where(g5_internal: false).map { |c| get_urn(c.cms_url) } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment