Skip to content

Commit 4fc8fe8

Browse files
committed
Removed excess code
1 parent 7287e85 commit 4fc8fe8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/gon.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66

77
class << Gon
88
def all_variables
9-
instance_variable_get :@table
9+
@table
1010
end
1111
def clear
12-
instance_variable_set :@table, {}
12+
@table = {}
1313
end
1414
end

lib/gon/helpers.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ def self.included base
66

77
module InstanceMethods
88
def include_gon
9-
data = Gon.all_variables || {}
9+
data = Gon.all_variables
1010

1111
script = "<script>window.Gon = {};"
1212
data.each do |key, val|

0 commit comments

Comments
 (0)