Skip to content

Commit

Permalink
Added backword compatible for < json-2.5
Browse files Browse the repository at this point in the history
  • Loading branch information
hsbt committed Dec 22, 2020
1 parent ea58503 commit 5910bef
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/json/common.rb
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ def generator=(generator) # :nodoc:
self.state = generator::State
const_set :State, self.state
const_set :SAFE_STATE_PROTOTYPE, State.new # for JRuby
const_set :FAST_STATE_PROTOTYPE, create_fast_state
const_set :PRETTY_STATE_PROTOTYPE, create_pretty_state
ensure
$VERBOSE = old
end
Expand Down

0 comments on commit 5910bef

Please sign in to comment.