Skip to content

Instantly share code, notes, and snippets.

@remvee
Created June 18, 2009 15:12
Show Gist options
  • Save remvee/131946 to your computer and use it in GitHub Desktop.
Save remvee/131946 to your computer and use it in GitHub Desktop.
thank god for tests
--- 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