title: Active Admin uninitialized constant for class in /lib
body: <p>I'm trying to create a custom class for ActiveAdmin to try and clean up code out of the controller override in my Resource file.</p>
  
  <p>I have a class <code>creditcard.rb</code> in <code>/lib</code>:</p>
  
  <pre><code>class Creditcard
  
  def initialize
      1
  end
  
  end
  </code></pre>
  
  <p>And I have this controller code in <code>subscriptions.rb</code></p>
  
  <pre><code>ActiveAdmin.register Subscription do
  
    controller do
      def update
      @test=Creditcard.new
  </code></pre>
  
  <p>Boom. <code>uninitialized constant Creditcard</code>. Anyone know how to use custom classes with ActiveAdmin?</p>
  
  <p>Thanks!</p>