File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ Rails.configuration.ld_client = LaunchDarkly::LDClient.new("your_sdk_key")
71713 . 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
7777Note that this gem will automatically switch to using the Rails logger it is detected.
@@ -83,7 +83,7 @@ Your first feature flag
83832 . 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: " user@test.com" }, false )
86+ if client.variation (" your.flag.key" , {key: " user@test.com" }, false )
8787 # application code to show the feature
8888else
8989 # the code to run if the feature is off
You can’t perform that action at this time.
0 commit comments