Module: ActiveRecord::Coders::JSON
Do not use. This module is for internal use only.
Relationships & Source Files | |
Defined in: | activerecord/lib/active_record/coders/json.rb |
Class Method Summary
Class Method Details
.dump(obj)
[ GitHub ]# File 'activerecord/lib/active_record/coders/json.rb', line 6
def self.dump(obj) ActiveSupport::JSON.encode(obj) end
.load(json)
[ GitHub ]# File 'activerecord/lib/active_record/coders/json.rb', line 10
def self.load(json) ActiveSupport::JSON.decode(json) unless json.blank? end