lib/gon.rb in gon-5.1.2 vs lib/gon.rb in gon-5.2.0
- old
+ new
@@ -61,10 +61,10 @@
set_variable(name.to_s, value)
end
end
def all_variables
- current_gon.gon if current_gon
+ current_gon ? current_gon.gon : {}
end
def clear
current_gon.clear if current_gon
end