Add empty function when resource is singular.
Merge pull request #1946 from abuiles/generators-enhancement

Add empty function when resource is singular.