gazay / gon

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

DEPRECATION WARNING: env is deprecated and will be removed from Rails 5.0 #202

Closed dlupu closed 8 years ago

dlupu commented 8 years ago

this commit deprecated env in favor of request.env

gazay commented 8 years ago

We need to check since what version of rails env available from request. Thank you for your PR!

ghost commented 8 years ago

gon.gemspec specificate actionpack is required 3.0.0 or higher. So, I will check to exist request.env in Rails 3.0.0. As a result, it is exists.

gazay commented 8 years ago

Thank you @dlupu & @takiy33 !

jsnick commented 8 years ago

@gazay , When is this gem deployed for including this issue ? Now, rails 5 has been released and I use it and still gon, too. So deprecation warning about env pops out whenever gon is executed! it bother me.. T^T

gazay commented 8 years ago

v 6.1.0 pushed