Skip to content

Instantly share code, notes, and snippets.

@dnch
Forked from anonymous/gist:83930
Created March 24, 2009 04:16
Show Gist options
  • Save dnch/83934 to your computer and use it in GitHub Desktop.
Save dnch/83934 to your computer and use it in GitHub Desktop.
def self.retrieve_capture_fields(the_page, type_of_capture)
case the_page
when Event then retrieve_capture_data(type_of_capture, the_event_or_hero_page)
when HeroPage then
if the_event_or_hero_page.is_this_hero_page_associated_with_an_event && the_page.event
retrieve_capture_data(type_of_capture, the_page.event)
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment