--- 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