Created
January 7, 2012 00:09
-
-
Save jtrim/1573185 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 try_cached_event | |
| unless (id = cookies[Event::IDENTITY_KEY]) && (event = Event.find_by_id(id)) | |
| cookies[Event::IDENTITY_KEY] = { expires: 1.day.ago } | |
| return | |
| end | |
| redirect_to event_participants_url(event) | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment