def klass_for_type(type, singular=false)
      type = type.singularize unless singular
      type.classify.constantize
    end
def klass_for_type(type, singular=false)
      type = type.singularize unless singular
      type.classify.constantize
    end
Resolves the Class for a type.

 Params:
 +type+:: +String+ A stringified type.
 +singular+:: +Boolean+ Pass true if you don't want to singularize the type.