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); } } ///