From 151c85b5ee445b0d8c9f3063a388e4d03d6b8e6a Mon Sep 17 00:00:00 2001 From: Andrew Hubbs Date: Fri, 21 Sep 2012 15:31:39 -0700 Subject: [PATCH] Change to_a call to Array() To get rid of deprecation warnings. --- lib/oauth/controllers/application_controller_methods.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/oauth/controllers/application_controller_methods.rb b/lib/oauth/controllers/application_controller_methods.rb index 4bceec7a..b1c5a9e3 100644 --- a/lib/oauth/controllers/application_controller_methods.rb +++ b/lib/oauth/controllers/application_controller_methods.rb @@ -43,7 +43,7 @@ def initialize(controller,strategies) def allow? if @strategies.include?(:interactive) && interactive true - elsif !(@strategies & env["oauth.strategies"].to_a).empty? + elsif !(@strategies & Array(env["oauth.strategies"])).empty? @controller.send :current_user=, token.user if token true else