Changeset [5af6022b2cc83953aae520c99ed88944bbdab05a] by Artem Bolshakov

March 30th, 2016 @ 01:58 PM

Build proper path for models within modules

Given I have a model witing module

module Admin  
  class User < ActiveRecord::Base
  end
end  
<pre><code>
I try to use it as &quot;I am on userl&#39;s page&quot;
But it generates wrong path method name: &#39;admin&#47;user_path&#39;.
https:&#47;&#47;github.com&#47;ianwhite&#47;pickle&#47;commit&#47;5af6022b2cc83953aae520c99ed88944bbdab05a</code>
</pre>

Committed by Artem Bolshakov

  • M lib/pickle/path.rb
  • M spec/pickle/path_spec.rb
New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Assign tickets to <b>Ian White</b>, so I get notified