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