Skip to content

Commit bb76f68

Browse files
authored
Merge pull request #74 from colmdoyle/master
Rename toggle? to variation
2 parents a0e9ad6 + 26ae48a commit bb76f68

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ Rails.configuration.ld_client = LaunchDarkly::LDClient.new("your_sdk_key")
7171
3. In your controllers, access the client using
7272

7373
```ruby
74-
Rails.application.config.ld_client.toggle?('your.flag.key', launchdarkly_settings, false)
74+
Rails.application.config.ld_client.variation('your.flag.key', launchdarkly_settings, false)
7575
```
7676

7777
Note that this gem will automatically switch to using the Rails logger it is detected.
@@ -83,7 +83,7 @@ Your first feature flag
8383
2. In your application code, use the feature's key to check whether the flag is on for each user:
8484

8585
```ruby
86-
if client.toggle?("your.flag.key", {key: "[email protected]"}, false)
86+
if client.variation("your.flag.key", {key: "[email protected]"}, false)
8787
# application code to show the feature
8888
else
8989
# the code to run if the feature is off

0 commit comments

Comments
 (0)