title: Accessing a module/class with same name in a different file in ruby on rails
body: <p>I am having 2 different file test1.rb and Report.rb as follows :</p>
  <p>test1.rb</p>
  <pre><code>module List
   module Report
    constants = Report::Category.constants.collect{|c| c.to_s}
   end
  end
  </code></pre>
  <p>In Report.rb</p>
  <pre><code>Class Report &lt; ApplicationRecord
   module Category
    CONSTANT1 = 1
    CONSTANT2 = 2
   end
  end
  </code></pre>
  <p>So I get an error in test1.rb saying undifined method category for list::Report. It is accessing  the module list::Report insted for Report class from Report.rb.
  Is there a way to access another class/module with same name as the current file module?</p>