gazay / gon

Your Rails variables in your JS
MIT License
3.05k stars 185 forks source link

include_gon with stream: true doesn't work #209

Open gouravtiwari opened 8 years ago

gouravtiwari commented 8 years ago

I am using Gon gem for a while now and I am using rails 4.2.6. Currently exploring rails' streaming option. I found that include_gon(namespace: 'APP_NAME') in view doesn't work as soon as I add render stream: true in action. Is it supported by Gon? Are there any work arounds?

gouravtiwari commented 8 years ago

Linking related issue https://github.com/gazay/gon/issues/90

seanlinsley commented 7 years ago

include_gon init: true works, but doesn't record any variables that have been set. It appears that this is a bug in the request_store gem: https://github.com/steveklabnik/request_store/pull/52