lib/authlogic/acts_as_authentic/base.rb in Empact-authlogic-3.0.3 vs lib/authlogic/acts_as_authentic/base.rb in Empact-authlogic-3.1.0

- old
+ new

@@ -26,10 +26,10 @@ # end # # 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 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? yield self if block_given?