Skip to content

Instantly share code, notes, and snippets.

Created March 24, 2009 04:11
Show Gist options
  • Save anonymous/83930 to your computer and use it in GitHub Desktop.
Save anonymous/83930 to your computer and use it in GitHub Desktop.
def self.retrieve_capture_fields(the_page, type_of_capture)
capture_fields=nil
pagetype = the_page.class
if pagetype == "Event"
capture_fields=retrieve_capture_data(type_of_capture, the_event_or_hero_page)
elsif pagetype == "HeroPage"
if the_event_or_hero_page.is_this_hero_page_associated_with_an_event
if the_page.event
capture_fields=retrieve_capture_data(type_of_capture, the_page.event)
end
end
end
return capture_fields
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment