Skip to content

Instantly share code, notes, and snippets.

Created March 24, 2009 03:45
Show Gist options
  • Save anonymous/83920 to your computer and use it in GitHub Desktop.
Save anonymous/83920 to your computer and use it in GitHub Desktop.
def self.determine_if_this_is_an_event_or_hero_page_mode(the_event_or_hero_page)
is_this_an_event_or_hero_page_model=nil
if the_event_or_hero_page[:event_url]
is_this_an_event_or_hero_page_model = "event"
elsif the_event_or_hero_page[:url]
is_this_an_event_or_hero_page_model = "hero_page"
end
return is_this_an_event_or_hero_page_model
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment