Skip to content

Instantly share code, notes, and snippets.

@dnch
Forked from anonymous/gist:83920
Created March 24, 2009 03:49
Show Gist options
  • Save dnch/83923 to your computer and use it in GitHub Desktop.
Save dnch/83923 to your computer and use it in GitHub Desktop.
def self.determine_if_this_is_an_event_or_hero_page_mode(args)
if args[:event_url]
"event"
elsif args[:url]
"hero_page"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment