 
 <cffunction name="$assignAdapter" returntype="any" access="public" output="false">
 	<cfscript>
-		var loc = {};
-		if (application.wheels.showErrorInformation) {
+		if (get("showErrorInformation")) {
 			try {
-				loc.info = $dbinfo(dataSource=variables.wheels.class.dataSource, username=variables.wheels.class.username, password=variables.wheels.class.password, type="version");
+				local.info = $dbinfo(dataSource=variables.wheels.class.dataSource, username=variables.wheels.class.username, password=variables.wheels.class.password, type="version");
 			} catch (any e) {
 				$throw(
 					type="Wheels.DataSourceNotFound",

	<cfreturn loc.rv>
</cffunction>

<cffunction name="$classData" returntype="struct" access="public" output="false">
	<cfreturn variables.wheels.class>
</cffunction>

<cffunction name="$softDeletion" returntype="boolean" access="public" output="false">
	<cfreturn variables.wheels.class.softDeletion>
</cffunction>

<cffunction name="$softDeleteColumn" returntype="string" access="public" output="false">
	<cfreturn variables.wheels.class.softDeleteColumn>
</cffunction>

				);
			}
		} else {
			local.info = $dbinfo(
				type="version",
				dataSource=variables.wheels.class.dataSource,
				username=variables.wheels.class.username,
				password=variables.wheels.class.password
			);
		}
		if (FindNoCase("SQLServer", local.info.driver_name) || FindNoCase("SQL Server", local.info.driver_name)) {
			local.adapterName = "SQLServer";
		} else if (FindNoCase("MySQL", local.info.driver_name) || FindNoCase("MariaDB", local.info.driver_name)) {
			local.adapterName = "MySQL";
		} else if (FindNoCase("Oracle", local.info.driver_name)) {
			local.adapterName = "Oracle";
		} else if (FindNoCase("PostgreSQL", local.info.driver_name)) {
			local.adapterName = "PostgreSQL";
		} else if (FindNoCase("H2", local.info.driver_name)) {
			local.adapterName = "H2";
		} else {
			$throw(
				type="Wheels.DatabaseNotSupported",
				message="#local.info.database_productname# is not supported by CFWheels.",
				extendedInfo="Use SQL Server, MySQL, MariaDB, Oracle, PostgreSQL or H2."
			);
		}
		local.rv = CreateObject("component", "adapters.#local.adapterName#").init(
			dataSource=variables.wheels.class.dataSource,
			username=variables.wheels.class.username,
			password=variables.wheels.class.password
		);
		application.wheels.adapterName = local.adapterName;
		return local.rv;
	</cfscript>
</cffunction>

<cffunction name="$initModelObject" returntype="any" access="public" output="false">
