-
-
Save dnch/83934 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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