connect (Merb::Orms::ActiveRecord)

    # File lib/merb/orms/active_record/connection.rb, line 57
            def connect
              if File.exists?(config_file)
                Merb.logger.info!("Connecting to database...")

                Thread.new{ loop{ sleep(60*60); ::ActiveRecord::Base.verify_active_connections! } }

                ::ActiveRecord::Base.logger = Merb.logger
                ::ActiveRecord::Base.configurations = configurations
                ::ActiveRecord::Base.establish_connection config
              else
                copy_sample_config
                Merb.logger.error! "No database.yml file found in #{Merb.root}/config."
                Merb.logger.error! "A sample file was created called database.yml.sample for you to copy and edit."
                exit(1)
              end
            end