Skip to content

Instantly share code, notes, and snippets.

@lbergen
Created May 23, 2012 19:11
Show Gist options
  • Save lbergen/2777161 to your computer and use it in GitHub Desktop.
Save lbergen/2777161 to your computer and use it in GitHub Desktop.
bright_cove_content_parts = ContentPart.find(:all, :conditions=>["content like '%%c.brightcove.com%%'"])
bright_cove_content_parts.collect {|cp| cp.template_part.name}.uniq
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment