Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

Raise an exception if a database connection is not established before…

… using acts_as_authentic
  • Loading branch information...
commit ed6d8f3a5c5947a9a5aa13654870cea628565ca0 1 parent 594f4f4
Brian Viveiros authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/authlogic/acts_as_authentic/base.rb
2  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
- return if !db_setup?
+ raise"You must establish a database connection before using acts_as_authentic") if !db_setup?
raise"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.