Using class instead of string in case clause in media_resource_helper