Skip to content

Commit 11f9b06

Browse files
committed
Change variable name in readme
1 parent fb3f759 commit 11f9b06

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
@@ -310,13 +310,13 @@ For example I want to tell anybody my application session secret token :) Now wi
310310

311311
```ruby
312312
GonTest::Application.config.secret_token = "You can't see my token"
313-
Gon.global.session = "You can't see it I said"
313+
Gon.global.secret_token = "You can't see it I said"
314314
```
315315

316316
`in some js which can reach window.gon variable`
317317

318318
```javascript
319-
alert(gon.global.session)
319+
alert(gon.global.secret_token)
320320
```
321321

322322
Thats it!

0 commit comments

Comments
 (0)