lib/gon.rb in gon-2.0.2 vs lib/gon.rb in gon-2.0.3

- old
+ new

@@ -22,9 +22,17 @@ if defined?(@request_env) return @request_env end end + def request + @request_id if defined? @request_id + end + + def request=(request_id) + @request_id = request_id + end + def method_missing(m, *args, &block) if ( m.to_s =~ /=$/ ) if public_methods.include? m.to_s[0..-2].to_sym raise "You can't use Gon public methods for storing data" end