sferik/rails_admin — pull request #1184 by joergschiller (2012-06-04 14:02:12+00:00)
Title: Fix empty models on Heroku.

When deploying RailsAdmin on Heroku no models are shown/detected.

```RailsAdmin::Config.visible_models``` returns an empty array, that is because ```ActiveRecord::Base.configurations``` returns an empty Hash instead of the database configuration.

You can fix this calling ```Rails.configuration.database_configuration``` to retrieve the adapter settings like it is done for the encoding in [lib/rails_admin/adapters/active_record.rb][1].

[1]: https://github.com/sferik/rails_admin/blob/master/lib/rails_admin/adapters/active_record.rb#L98