We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7287e85 commit 4fc8fe8Copy full SHA for 4fc8fe8
lib/gon.rb
@@ -6,9 +6,9 @@
6
7
class << Gon
8
def all_variables
9
- instance_variable_get :@table
+ @table
10
end
11
def clear
12
- instance_variable_set :@table, {}
+ @table = {}
13
14
lib/gon/helpers.rb
@@ -6,7 +6,7 @@ def self.included base
module InstanceMethods
def include_gon
- data = Gon.all_variables || {}
+ data = Gon.all_variables
script = "<script>window.Gon = {};"
data.each do |key, val|
0 commit comments