diff options
author | Neeraj Singh <neerajdotname@gmail.com> | 2010-10-16 23:12:19 -0400 |
---|---|---|
committer | Santiago Pastorino <santiago@wyeworks.com> | 2010-10-17 12:26:32 -0200 |
commit | ea14396c455b0816e87abe424275290fc4b09b32 (patch) | |
tree | 3f92e0afad41bb4039adbc2c2bbc6e9b4b9d1096 /actionpack/lib | |
parent | b44e2abd9f65b5d253175e047b1f4c115385d2f3 (diff) | |
download | rails-ea14396c455b0816e87abe424275290fc4b09b32.tar.gz rails-ea14396c455b0816e87abe424275290fc4b09b32.tar.bz2 rails-ea14396c455b0816e87abe424275290fc4b09b32.zip |
replace if ! with unless
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
Diffstat (limited to 'actionpack/lib')
-rw-r--r-- | actionpack/lib/action_controller/metal/http_authentication.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_controller/metal/http_authentication.rb b/actionpack/lib/action_controller/metal/http_authentication.rb index 547cec7081..39c804d707 100644 --- a/actionpack/lib/action_controller/metal/http_authentication.rb +++ b/actionpack/lib/action_controller/metal/http_authentication.rb @@ -407,7 +407,7 @@ module ActionController # Returns nil if no token is found. def authenticate(controller, &login_procedure) token, options = token_and_options(controller.request) - if !token.blank? + unless token.blank? login_procedure.call(token, options) end end |