Permalink
Browse files

Rollback of commit ed6d8f3

  • Loading branch information...
jefmathiot committed Jun 13, 2012
1 parent 8272fec commit 2868ecc7513501a42396427027a42de04fa80ce7
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/authlogic/acts_as_authentic/base.rb
@@ -28,7 +28,7 @@ module Config
# See the various sub modules for the configuration they provide.
def acts_as_authentic(unsupported_options = nil, &block)
# Stop all configuration if the DB is not set up
- raise StandardError.new("You must establish a database connection before using acts_as_authentic") if !db_setup?
+ return if !db_setup?
raise ArgumentError.new("You are using the old v1.X.X configuration method for Authlogic. Instead of " +
"passing a hash of configuration options to acts_as_authentic, pass a block: acts_as_authentic { |c| c.my_option = my_value }") if !unsupported_options.nil?

0 comments on commit 2868ecc

Please sign in to comment.