Skip to content

Instantly share code, notes, and snippets.

@mfojtik
Created February 25, 2014 14:44
Show Gist options
  • Save mfojtik/9210132 to your computer and use it in GitHub Desktop.
Save mfojtik/9210132 to your computer and use it in GitHub Desktop.
app_ids = Application.where({"scalable" => true}).find_all { |app|
app.component_instances.any? { |c|
c.is_embeddable? && db_carts.include?(c.component_name)
}
}.map { |a| a.id }
@mfojtik
Copy link
Author

mfojtik commented Feb 25, 2014

db_carts = [ 'postgresql-9.2', 'mysql-5.5' ]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment