Method: JSONAPIHelpers::Serializers::Datum#to_json
- Defined in:
- lib/jsonapi_helpers/serializers/datum.rb
#to_json(_context = nil) ⇒ Object
Rails is awkward and calls #to_json with a context argument NOTE: Rails only method Hash#to_json
21 22 23 |
# File 'lib/jsonapi_helpers/serializers/datum.rb', line 21 def to_json(_context = nil) to_h.to_json end |