Skip to content

Commit

Permalink
FFM-8670: Feature flag rule not being evaluated for a given attribute
Browse files Browse the repository at this point in the history
* Fix evaluation issue where a boolean is returned instead of a value
* Include test case
  • Loading branch information
ribeirophillipe committed Jul 19, 2023
1 parent 64dabb8 commit db8934c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ff/ruby/server/sdk/api/evaluator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ def get_attr_value(target, attribute)
return target.send(attribute)
else

result = target.attributes.key?(attribute)
result = target.attributes[attribute.to_sym]

if result == nil

Expand Down

0 comments on commit db8934c

Please sign in to comment.