Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Rollback db_setup exception

  • Loading branch information...
commit 8e980ce8d314e14ac9f6ace3dec23d2187e0f9f4 1 parent 40c0e16
@mrako authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  lib/authlogic/acts_as_authentic/base.rb
View
3  lib/authlogic/acts_as_authentic/base.rb
@@ -27,8 +27,9 @@ module Config
#
# See the various sub modules for the configuration they provide.
def acts_as_authentic(unsupported_options = nil, &block)
+ return unless db_setup?
# 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?
+ # raise StandardError.new("You must establish a database connection before using acts_as_authentic") 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?
Please sign in to comment.
Something went wrong with that request. Please try again.