Skip to content

Commit 94f4927

Browse files
committed
fix: filter out _feature in allVariables return
1 parent de856e4 commit 94f4927

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

lib/devcycle-ruby-server-sdk/api/client.rb

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,12 @@ def all_variables(user, opts = {})
353353

354354
if local_bucketing_initialized? && @local_bucketing.has_config
355355
bucketed_config = @local_bucketing.generate_bucketed_config(user)
356-
bucketed_config.variables.reject { |key, _| key.start_with?('_feature') }
356+
bucketed_config.variables.transform_values do |variable|
357+
variable.delete(:_feature)
358+
variable
359+
end
360+
bucketed_config.variables
361+
357362
else
358363
{}
359364
end

0 commit comments

Comments
 (0)