ChiliProject is not maintained anymore. Please be advised that there will be no more updates.
We do not recommend that you setup new ChiliProject instances and we urge all existing users to migrate their data to a maintained system, e.g. Redmine. We will provide a migration script later. In the meantime, you can use the instructions by Christian Daehn.
Provide a library function to detect the database type used (Feature #112)
ActiveRecord::Base.connection.adapter_name works not fully reliable for multiple adapter variants used in the wild. One example is the difference between
MySQL for the mysql adapter and
mysql2 for the mysql2 adapter.
For the rare cases where it is necessary to distinguish database types for specific SQL code, detection should be done reliable and in a single place to update it when necessary.
[#112] Add ChiliProject::Database
This module can be used to gather information about the currently used
Pull request at https://github.com/chiliproject/chiliproject/pull/57
- Status changed from Open to Ready for review