Map ActiveRecord to external database

Hi, Im writing a Plugin for redmine. My Problem is to map an
ActiveRecord to an external database. Here's my class:

Here is a good link which solved my problem:
http://ilikestuffblog.com/2012/09/21/establishing-a-connection-to-a-non-default-database-in-rails-3-2-2/