Skip to content

Commit

Permalink
Rollback db_setup exception
Browse files Browse the repository at this point in the history
  • Loading branch information
mrako committed Jul 8, 2012
1 parent 40c0e16 commit 8e980ce
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/authlogic/acts_as_authentic/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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?
Expand Down

0 comments on commit 8e980ce

Please sign in to comment.