Skip to content
Browse files

Make default options stick with reverse_merge!

Signed-off-by: Nathaniel Bibler <nbibler@nathanielbibler.com>
  • Loading branch information...
1 parent 98e2c26 commit 2458e2755576fe5fdce3f5786c295832b973fd83 ldenman committed with Jul 20, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/should_require_login.rb
View
2 lib/should_require_login.rb
@@ -2,7 +2,7 @@ module ShouldRequireLogin
def should_require_login(*actions)
options = actions.extract_options!
- options.reverse_merge({
+ options.reverse_merge!({
:method => :get,
:params => {}
})

0 comments on commit 2458e27

Please sign in to comment.
Something went wrong with that request. Please try again.