Fix detecting resource name with inhereted resources

When controller has custom resource_class, method `parent?` returns wrong value. And for fix that, we must take resource_name from 'resources_configuration' of controller.