Improve OmniAuth version check to allow anything from 1.0 forward
This should enable people to try OmniAuth 2 currently in pre-release.
This commit is contained in:
parent
98fc5e8e39
commit
8bb358cf80
|
@ -8,8 +8,8 @@ rescue LoadError
|
||||||
raise
|
raise
|
||||||
end
|
end
|
||||||
|
|
||||||
unless OmniAuth::VERSION =~ /^1\./
|
if Gem::Version.new(OmniAuth::VERSION) < Gem::Version.new('1.0.0')
|
||||||
raise "You are using an old OmniAuth version, please ensure you have 1.0.0.pr2 version or later installed."
|
raise "You are using an old OmniAuth version, please ensure you have 1.0.0 version or later installed."
|
||||||
end
|
end
|
||||||
|
|
||||||
# Clean up the default path_prefix. It will be automatically set by Devise.
|
# Clean up the default path_prefix. It will be automatically set by Devise.
|
||||||
|
|
Loading…
Reference in New Issue