Skip to content

Commit 46c77ab

Browse files
committed
Add request. in headers example, fixes #5344
1 parent 08ffdaf commit 46c77ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

guides/changesets/installation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ class GraphqlController < ApplicationController
7171
def execute
7272
context = {
7373
# ...
74-
changeset_version: headers["API-Version"], # <- Your header here. Choose something for API clients to pass.
74+
changeset_version: request.headers["API-Version"], # <- Your header here. Choose something for API clients to pass.
7575
}
7676
result = MyAppSchema.execute(..., context: context)
7777
# ...

0 commit comments

Comments
 (0)