title: How to use a method in multiple models in Rails
body: <p>I have two models User and Photo</p>
  
  <p>Photo includes the following method:</p>
  
  <pre><code>      def passedTime datetime
          (datetime &gt; (Date.today - 1.year)) ? ((distance_of_time_in_words datetime,   Date.today) + ' ago') : datetime.strftime('%d %b %Y')
        end
  </code></pre>
  
  <p>How do I include this method in the user model in a best practice way?</p>