Classify causes plural model names to be incorrectly renamed
Some model names will be renamed incorrectly e.g. 'business'. It should be the responsibility of the user to make sure they use a name that directly corresponds to the model name. The only filtering performed should be camelize.
This commit is contained in:
@@ -222,8 +222,8 @@ describe CanCan::ControllerResource do
|
||||
}
|
||||
@controller.instance_variable_get(:@project).should be_nil
|
||||
end
|
||||
|
||||
it "named resources should not be loaded independently of the controller" do
|
||||
|
||||
it "named resources should be loaded independently of the controller name" do
|
||||
category = Category.create!
|
||||
@params.merge!(:action => "new", :category_id => category.id)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user