Module: ActiveSupport::JSON

Defined in:
lib/webhookdb/json.rb

Overview

Replace ActiveSupport::JSON.encode so it calls Oj directly. This isn’t strictly necessary (since we set json_encoder), but skips an extra method call.

Class Method Summary collapse

Class Method Details

.encode(value, options = nil) ⇒ Object



110
111
112
# File 'lib/webhookdb/json.rb', line 110

def self.encode(value, options=nil)
  return Webhookdb::Json.encode(value, options)
end