From fb4ec6e9da702aba77e536027a24aacada94ccd2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20Mej=C3=ADa?= Date: Mon, 3 Jan 2011 10:10:39 +0800 Subject: [PATCH] Fixing parameters for _omniauth_authorize_path method after short-circuiting it. --- lib/devise/omniauth/test_helpers.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/devise/omniauth/test_helpers.rb b/lib/devise/omniauth/test_helpers.rb index db58a7d6..6ba74935 100644 --- a/lib/devise/omniauth/test_helpers.rb +++ b/lib/devise/omniauth/test_helpers.rb @@ -40,8 +40,8 @@ module Devise next unless m.omniauthable? module_eval <<-ALIASES, __FILE__, __LINE__ + 1 - def #{m.name}_omniauth_authorize_path(provider) - #{m.name}_omniauth_callback_path(provider) + def #{m.name}_omniauth_authorize_path(provider, params = {}) + #{m.name}_omniauth_callback_path(provider, params) end ALIASES end