Skip to content

Commit

Permalink
fix: Ensure flags are set in code example (#3901)
Browse files Browse the repository at this point in the history
  • Loading branch information
zachaysan committed May 8, 2024
1 parent 5f7d3cd commit fa46ba7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions frontend/common/code-help/init/init-ruby.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ $flagsmith = Flagsmith::Client.new(
environment_key: '${envId}'
)
// Load the environment's flags locally
$flags = $flagsmith.get_environment_flags
// Check for a feature
$is_enabled = $flags.is_feature_enabled('${customFeature || FEATURE_NAME}')
Expand Down

0 comments on commit fa46ba7

Please sign in to comment.