diff options
Diffstat (limited to 'lib/chef/json_compat.rb')
-rw-r--r-- | lib/chef/json_compat.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/json_compat.rb b/lib/chef/json_compat.rb index 188a5d38f3..47d66dba96 100644 --- a/lib/chef/json_compat.rb +++ b/lib/chef/json_compat.rb @@ -17,7 +17,7 @@ # Wrapper class for interacting with JSON. -require "ffi_yajl" unless defined?(FFI_Yajl) +autoload :FFI_Yajl, "ffi_yajl" require_relative "exceptions" # We're requiring this to prevent breaking consumers using Hash.to_json require "json" unless defined?(JSON) |