From 9bfe06d99e464a61c4337fe8d93abe738dd6d88f Mon Sep 17 00:00:00 2001 From: Vishrut Shah Date: Mon, 2 May 2016 09:37:21 -0700 Subject: [PATCH] SkipEncodingPathParams and EncodingPathParams should be symmetrical --- .../Generators/Ruby/Ruby/TemplateModels/MethodTemplateModel.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AutoRest/Generators/Ruby/Ruby/TemplateModels/MethodTemplateModel.cs b/AutoRest/Generators/Ruby/Ruby/TemplateModels/MethodTemplateModel.cs index 7eff24f782..04ff0176c7 100644 --- a/AutoRest/Generators/Ruby/Ruby/TemplateModels/MethodTemplateModel.cs +++ b/AutoRest/Generators/Ruby/Ruby/TemplateModels/MethodTemplateModel.cs @@ -122,7 +122,7 @@ public virtual string SkipEncodingQueryParamsRbDict /// public virtual IEnumerable EncodingPathParams { - get { return AllPathParams.Where(p => !p.Extensions.ContainsKey(Generator.Extensions.SkipUrlEncodingExtension)); } + get { return AllPathParams.Except(SkipEncodingPathParams); } } ///