Skip to content

Commit

Permalink
Warn to install ostruct if json couldn't load it
Browse files Browse the repository at this point in the history
  • Loading branch information
hsbt committed Apr 4, 2024
1 parent cdbcbd0 commit fff2859
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/json/generic_object.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
begin
require 'ostruct'
rescue LoadError
warn "JSON::GenericObject requires 'ostruct'. Please install it with `gem install ostruct`."
end

module JSON
Expand Down

0 comments on commit fff2859

Please sign in to comment.