Don't use parentheses around a method call
This commit is contained in:
parent
a3a362de64
commit
2c334ed6a9
|
@ -49,7 +49,7 @@ module OmniAuth
|
||||||
middleware = klass
|
middleware = klass
|
||||||
else
|
else
|
||||||
begin
|
begin
|
||||||
middleware = OmniAuth::Strategies.const_get((OmniAuth::Utils.camelize(klass.to_s)).to_s)
|
middleware = OmniAuth::Strategies.const_get(OmniAuth::Utils.camelize(klass.to_s).to_s)
|
||||||
rescue NameError
|
rescue NameError
|
||||||
raise(LoadError.new("Could not find matching strategy for #{klass.inspect}. You may need to install an additional gem (such as omniauth-#{klass})."))
|
raise(LoadError.new("Could not find matching strategy for #{klass.inspect}. You may need to install an additional gem (such as omniauth-#{klass})."))
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue