Skip to content

Instantly share code, notes, and snippets.

@emschwar
Created August 11, 2009 14:31
Show Gist options
  • Save emschwar/165864 to your computer and use it in GitHub Desktop.
Save emschwar/165864 to your computer and use it in GitHub Desktop.
def self.find_for_centro_finance(id)
Closing.find id,
:conditions => "third_party_placements.ordered_placement_id IS NOT NULL",
:include => [
:delivery_item_entries,
:delivery_item,
:third_party_placement,
:ordered_placement,
:placements,
:plan_row,
:plan
].nested_hash
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment