use last segment of route_path when determining resource name if it
corresponds to a subclass of ActiveRecord::Base