Hello, here I'm reporting a problem I have with automatically generated Scaffolds. The problem is as follows. When you create a scaffold for let say Foo.Bar you will get a Foo.Bar.List controller and a Foo.Bar model (among other things). When you try to call findAll you get a "parse error" produced by the call to the "bar.models" converter. The function is failing at the line
var res = getList(this.List),
because the this.List variable has invalid data (normally I've seen it's undefined).
The reason why the List variable has wrong data in it is as follows. Since the controller is named "Foo.Bar.List", apparently the Class thinks it inherits from "Foo.Bar" given that the extends method is beeing called. Particularly, with the following sentence is setting the "this.List" instance variable to a wrong value.
//@steal-remove-end current[shortName] = Class; //<-shortName here equals "List"
So, is this a problem with the naming convention used by the Scaffold generator or is there something wrong with the Class inheritance?
Thanks.