Skip to content

Commit 87b44bc

Browse files
committed
Clear is fine here after I've fix it properly
1 parent b1e5eda commit 87b44bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/gon/helpers.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def include_gon(options = {})
1414
Gon.clear
1515
Gon::Base.render_data(options)
1616
elsif options[:init].present?
17-
Gon::Request.env = {} if Gon.all_variables.present?
17+
Gon.clear if Gon.all_variables.present?
1818
Gon::Base.render_data(options)
1919
else
2020
""

0 commit comments

Comments
 (0)