Fixing parameters for _omniauth_authorize_path method after short-circuiting it.

This commit is contained in:
Andrés Mejía
2011-01-03 10:10:39 +08:00
committed by José Valim
parent 7ff0231ab7
commit fb4ec6e9da

View File

@@ -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