Created
April 1, 2010 17:30
-
-
Save ordinaryzelig/352105 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
# application_controller.rb | |
before_filter :april_fool | |
def april_fool | |
unless logged_in? && session[:april_fooled] | |
session[:april_fooled] = true | |
flash.now[:april_fool] = 'error 10.4.1: you may have corrupted data. contact administrator immediately.' | |
# get it? 2010.4.1! | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment