title: How to share methods between ActionMailers
body: <p>I have two mailers:</p>
  
  <pre><code>class Mailer1 &lt; ActionMailer::Base
    def mail
      if check_something?
      end
    end
  
    private
  
    def check_something?
    end
  end
  
  
  class Mailer2 &lt; ActionMailer::Base
    def another_mail
      if check_something?
      end
    end
  
    private
  
    def check_something?
    end
  end
  </code></pre>
  
  <p>(I understand I can pull in view helpers for the actual mail templates, but how can I make it work for controller-type "helper" methods - as ActionMailers derive from Abstract Controller these days.)</p>
  
  <p>So, where can I declare check_something?, and how can I make it accessible to both my mailers?</p>