gazay / gon

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

Is there a way to set gon variables with a proc? #256

Open paulodeon opened 4 years ago

paulodeon commented 4 years ago

I have a use case where I would like to add to the gon based on variables that are set in the controller/view - specifically the rails layout being used

glinesbdev commented 4 years ago

I would really like to know this as well.