title: How do I call an ApplicationRecord method from a controller?
body: <p>I have this method which is used in many models.</p>
  
  <pre><code>class ApplicationRecord &lt; ActiveRecord::Base
    self.abstract_class = true
  
    def human_to_number(human)
  </code></pre>
  
  <p>I wish to call this method from a controller, which doesn't use a model. How?</p>
  
  <pre><code>class StripesController &lt; ApplicationController
    def create
      @amount = params[:amount]
      @amount = ApplicationRecord.human_to_number(@amount)
  </code></pre>
  
  <p>I tried to define it with <code>self.</code> but that made all other calls in all models broken. </p>
  
  <p>I tried to <code>include ApplicationRecord</code> in the controller, but it complained that it needed a module, not a class.</p>
  
  <p>Rails 5.0.6</p>