Do not use ActiveSupport core extensions

Core extensions do not play well with many other gems; especially
considering that they only seem to be included for one `to_json` call,
they should be avoided.
This commit is contained in:
Matthew Lanigan 2018-07-18 00:02:41 -04:00 committed by Shishir Kakaraddi
parent 8357acd6a7
commit 5a70b1a686

View File

@ -1,6 +1,6 @@
# frozen_string_literal: true
require 'active_support/core_ext/object'
require 'active_support/json'
require 'active_support/concern'
require 'active_support/inflector'
require 'fast_jsonapi/attribute'
@ -65,7 +65,7 @@ module FastJsonapi
end
def serialized_json
self.class.to_json(serializable_hash)
ActiveSupport::JSON.encode(serializable_hash)
end
private