Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Ensure flags are set in code example #3901

Merged
merged 1 commit into from
May 8, 2024
Merged

Conversation

zachaysan
Copy link
Contributor

@zachaysan zachaysan commented May 8, 2024

Thanks for submitting a PR! Please check the boxes below:

  • I have run pre-commit to check linting
  • I have added information to docs/ if required so people know about the feature!
  • I have filled in the "Changes" section below?
  • I have filled in the "How did you test this code" section below?
  • I have used a Conventional Commit title for this Pull Request

Changes

Ensure flags are set in code example for the ruby client.

How did you test this code?

Checked it out in Vercel

@github-actions github-actions bot added the front-end Issue related to the React Front End Dashboard label May 8, 2024
Copy link

vercel bot commented May 8, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 8, 2024 1:59pm
flagsmith-frontend-preview ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 8, 2024 1:59pm
flagsmith-frontend-staging ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 8, 2024 1:59pm

Copy link
Contributor

github-actions bot commented May 8, 2024

Uffizzi Preview deployment-51446 was deleted.

@@ -8,6 +8,9 @@ $flagsmith = Flagsmith::Client.new(
environment_key: '${envId}'
)

// Load the environment's flags locally
$flags = $flagsmith.get_environment_flags
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should this be $flags = $flagsmith.get_environment_flags()

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not in Ruby. Parens are optional, even with arguments.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wild

@zachaysan zachaysan requested a review from kyle-ssg May 8, 2024 14:22
@kyle-ssg kyle-ssg added this pull request to the merge queue May 8, 2024
Merged via the queue into main with commit fa46ba7 May 8, 2024
21 checks passed
@kyle-ssg kyle-ssg deleted the fix/ensure_flags_are_set branch May 8, 2024 14:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
front-end Issue related to the React Front End Dashboard
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants