Created
March 24, 2009 03:45
-
-
Save anonymous/83920 to your computer and use it in GitHub Desktop.
This file contains 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.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