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:
Oliver Morgan
2012-05-31 10:45:55 +01:00
parent 78cbcf1db9
commit 245b83f6b4
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -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)