Created
June 18, 2009 15:12
-
-
Save remvee/131946 to your computer and use it in GitHub Desktop.
thank god for tests
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
--- a/app/controllers/security.rb | |
+++ b/app/controllers/security.rb | |
@@ -10,7 +10,7 @@ module Security | |
# Ensure somebody is logged in. Takes the same options as | |
# +before_filter+. | |
def authenticate(options = {}) | |
- before_filter options.dup { |controller| controller.send(:authenticate) } | |
+ before_filter(options.dup) { |controller| controller.send(:authenticate) } | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment