Use constantize helper method from Active Support
for support nested modules, constantize can to go through all of the modules to class
Add an additional check to ensure plural resources work

In the tests, there was not one for a plural class name, a test has
been added for this.