title: Rails - ActiveAdmin and Papertrail - a DRY approach
body: <p>I have lot of Models where I use PaperTrail, like:</p>
  
  <pre><code>class User &lt; ActiveRecord::Base
    has_paper_trail
  end
  </code></pre>
  
  <p>In the ActiveAdmin model's file I have:</p>
  
  <pre><code>ActiveAdmin.register User do
  
    ...
  
    # versioning part
    action_item :history, only: :show do
      link_to('History', history_backend_user_path(user), method: :get)
    end
  
    sidebar :versionate, :partial =&gt; "layouts/version", :only =&gt; :show
  
    member_action :history do
      @user = User.find(params[:id])
      @versions = @user.versions.reorder(created_at: :desc)
      render "layouts/history"
    end
  end
  </code></pre>
  
  <p>I have to repeat this lines for <em>every model</em> and I'm wondering how I could dry it up.</p>