1
0
Fork 0
mirror of https://github.com/heartcombo/devise.git synced 2022-11-09 12:18:31 -05:00

Raise here instead of a warning.

This commit is contained in:
José Valim 2011-02-24 22:12:54 +01:00
parent 3375985ab8
commit 930d5874ca
2 changed files with 5 additions and 1 deletions

View file

@ -43,6 +43,7 @@ GEM
addressable (2.2.4) addressable (2.2.4)
arel (2.0.8) arel (2.0.8)
bcrypt-ruby (2.1.4) bcrypt-ruby (2.1.4)
bcrypt-ruby (2.1.4-java)
bson (1.2.1) bson (1.2.1)
bson_ext (1.2.1) bson_ext (1.2.1)
builder (2.1.2) builder (2.1.2)
@ -145,6 +146,7 @@ PLATFORMS
DEPENDENCIES DEPENDENCIES
activerecord-jdbcsqlite3-adapter activerecord-jdbcsqlite3-adapter
bcrypt-ruby (~> 2.1.2)
bson_ext (= 1.2.1) bson_ext (= 1.2.1)
devise! devise!
mocha mocha
@ -152,7 +154,9 @@ DEPENDENCIES
mongoid (= 2.0.0.beta.20) mongoid (= 2.0.0.beta.20)
oa-oauth (~> 0.2.0.beta1) oa-oauth (~> 0.2.0.beta1)
oa-openid (~> 0.2.0.beta1) oa-openid (~> 0.2.0.beta1)
orm_adapter (~> 0.0.3)
rails (~> 3.0.4) rails (~> 3.0.4)
ruby-debug (>= 0.10.3) ruby-debug (>= 0.10.3)
sqlite3-ruby sqlite3-ruby
warden (~> 1.0.3)
webrat (= 0.7.2) webrat (= 0.7.2)

View file

@ -6,7 +6,7 @@ rescue LoadError => e
end end
unless OmniAuth.config.respond_to? :test_mode unless OmniAuth.config.respond_to? :test_mode
warn "Devise's OmniAuth testing support is deprecated. You should use Omniauth's own support, please ensure you have 0.2.0.beta version or later installed." raise "You are using an old OmniAuth version, please ensure you have 0.2.0.beta 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.