Override or add methods to already loaded Classes
<p>I'm trying to add functionalities to ActiveSupport::TimeWithZone class addind the following file to my rails project:</p>

<p><strong>lib/active_support/time_with_zone.rb</strong></p>

<pre><code>class ActiveSupport::TimeWithZone
  def in_time_zone_(new_zone = ::Time.zone)
    Time.zone.parse(in_time_zone(new_zone).strftime('%a, %d %b %Y %H:%M:%S'))
  end
end
</code></pre>

<p>and in</p>

<p><strong>config/application.rb</strong></p>

<pre><code>config.autoload_paths &lt;&lt; "#{Rails.root}/lib"
</code></pre>

<p>I can use other custom modules in my lib directory but this one seems to be ignored. Any idea why?</p>

<p><a href="https://i.stack.imgur.com/x7BTu.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/x7BTu.png" alt="enter image description here"></a></p>