title: pdf-reader gem on Mongoid
body: <p>I'm trying to use the pdf-reader gem
  (https://github.com/yob/pdf-reader) on my app (RoR with Mongoid).
  Unfortunately it doesn't work. I've put the gem in the Gemfile (and have done 'bundle install'). Here's my feedback:</p>
  
  <pre><code>uninitialized constant ActionView::CompiledTemplates::PDF
  </code></pre>
  
  <p>view-file</p>
  
  <pre><code>&lt;% PDF::Reader.new("somefile.pdf")%&gt;
  </code></pre>
  
  <p>I've tried to include the library in the model, but it doesn't work.</p>
  
  <pre><code>class User
    include Mongoid::Document
    include ::PDF::Reader
  </code></pre>
  
  <p>I get this error</p>
  
  <pre><code>uninitialized constant PDF
  </code></pre>
  
  <p>Do you know how to use the pdf-reader library on Mongoid?
  I am looking forward to your answers. THX!</p>