Separate database for active record versioning using paper trail gem
<p>I'm trying to log the change events of a model in a separate database using papertrail.</p>

<p>I'm using Rails 4.1.2</p>

<p>Ruby 2.1</p>

<p>Papertrail 4.0.0</p>

<p>Below is the code i have added in concerns</p>

<pre><code>module Foo
 class Base &lt; ActiveRecord::Base
 end

 class Version &lt; Base
  include PaperTrail::VersionConcern
 end

 class Topic &lt; Base
  has_paper_trail class_name: 'Foo::Version'
 end
end
Foo::Base.establish_connection(:trail_development)
</code></pre>

<p>I have included this Foo in topic.rb</p>

<pre><code>class Topic &lt; ActiveRecord::Base
 include Foo
end
</code></pre>

<p>Whats wrong? </p>

<p>Reference <a href="https://github.com/airblade/paper_trail/pull/289" rel="nofollow">https://github.com/airblade/paper_trail/pull/289</a></p>