diff options
-rw-r--r-- | lib/json/common.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/json/common.rb b/lib/json/common.rb index b53041b..7cc8529 100644 --- a/lib/json/common.rb +++ b/lib/json/common.rb @@ -25,7 +25,7 @@ module JSON # Set the JSON parser class _parser_ to be used by JSON. def parser=(parser) # :nodoc: @parser = parser - remove_const :Parser if const_defined?(:Parser, true) + remove_const :Parser if const_defined?(:Parser, false) const_set :Parser, parser end |