@@ -219,7 +219,7 @@ def create_optimizely_decision(user_context, flag_key, decision, reasons, decide
219
219
@notification_center . send_notifications (
220
220
NotificationCenter ::NOTIFICATION_TYPES [ :DECISION ] ,
221
221
Helpers ::Constants ::DECISION_NOTIFICATION_TYPES [ 'FLAG' ] ,
222
- user_id , ( attributes || { } ) ,
222
+ user_id , attributes || { } ,
223
223
flag_key : flag_key ,
224
224
enabled : feature_enabled ,
225
225
variables : all_variables ,
@@ -632,7 +632,7 @@ def is_feature_enabled(feature_flag_key, user_id, attributes = nil)
632
632
@notification_center . send_notifications (
633
633
NotificationCenter ::NOTIFICATION_TYPES [ :DECISION ] ,
634
634
Helpers ::Constants ::DECISION_NOTIFICATION_TYPES [ 'FEATURE' ] ,
635
- user_id , ( attributes || { } ) ,
635
+ user_id , attributes || { } ,
636
636
feature_key : feature_flag_key ,
637
637
feature_enabled : feature_enabled ,
638
638
source : source_string ,
@@ -860,7 +860,7 @@ def get_all_feature_variables(feature_flag_key, user_id, attributes = nil)
860
860
861
861
@notification_center . send_notifications (
862
862
NotificationCenter ::NOTIFICATION_TYPES [ :DECISION ] ,
863
- Helpers ::Constants ::DECISION_NOTIFICATION_TYPES [ 'ALL_FEATURE_VARIABLES' ] , user_id , ( attributes || { } ) ,
863
+ Helpers ::Constants ::DECISION_NOTIFICATION_TYPES [ 'ALL_FEATURE_VARIABLES' ] , user_id , attributes || { } ,
864
864
feature_key : feature_flag_key ,
865
865
feature_enabled : feature_enabled ,
866
866
source : source_string ,
@@ -1040,7 +1040,7 @@ def get_variation_with_config(experiment_key, user_id, attributes, config)
1040
1040
end
1041
1041
@notification_center . send_notifications (
1042
1042
NotificationCenter ::NOTIFICATION_TYPES [ :DECISION ] ,
1043
- decision_notification_type , user_id , ( attributes || { } ) ,
1043
+ decision_notification_type , user_id , attributes || { } ,
1044
1044
experiment_key : experiment_key ,
1045
1045
variation_key : variation_key
1046
1046
)
@@ -1115,7 +1115,7 @@ def get_feature_variable_for_type(feature_flag_key, variable_key, variable_type,
1115
1115
1116
1116
@notification_center . send_notifications (
1117
1117
NotificationCenter ::NOTIFICATION_TYPES [ :DECISION ] ,
1118
- Helpers ::Constants ::DECISION_NOTIFICATION_TYPES [ 'FEATURE_VARIABLE' ] , user_id , ( attributes || { } ) ,
1118
+ Helpers ::Constants ::DECISION_NOTIFICATION_TYPES [ 'FEATURE_VARIABLE' ] , user_id , attributes || { } ,
1119
1119
feature_key : feature_flag_key ,
1120
1120
feature_enabled : feature_enabled ,
1121
1121
source : source_string ,
0 commit comments