fatfreecrm/fat_free_crm — pull request #258 by davidchua (2013-06-25 03:23:49+00:00)
Title: 'undefined method current_database' causing ffcrm:setup rake task halt when using SQLite3

When running ffcrm:setup for the first time on an instance running SQLite3, rake task is unable to proceed, giving the following error:

undefined method `current_database' for #

SQLite3Adapter does not have a current_database method.

I've created a check to pull the sqlite3 database name using 'instance_variable_get' if it is detected that the adapter in use is indeed SQLite3Adapter.

Else, it will proceed as per normal and use 'current_database'.