lib/gon.rb in gon-1.1.2 vs lib/gon.rb in gon-1.1.3

- old
+ new

@@ -23,10 +23,10 @@ def self.method_missing(m, *args, &block) @request_env[:gon] ||= {} if ( m.to_s =~ /=$/ ) - if self.public_methods.include? m[0..-2].to_sym + if self.public_methods.include? m.to_s[0..-2].to_sym raise "You can't use Gon public methods for storing data" end set_variable(m.to_s.delete('='), args[0]) else get_variable(m.to_s)