Skip to content

Instantly share code, notes, and snippets.

@lbergen
Created May 24, 2012 03:37
Show Gist options
  • Save lbergen/2779275 to your computer and use it in GitHub Desktop.
Save lbergen/2779275 to your computer and use it in GitHub Desktop.
video_pagination_layouts = PaginationLayout.find(:all,
:conditions => ["content like '%%Video Review%%'"],
:include => [:content_template])
all_cts = []
all_cts += ContentTemplate.find_all_by_landing_page_layout_id(video_pagination_layouts)
all_cts += video_pagination_layouts.collect {|vpl| vpl.content_template}.compact # just in case
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment