Sha256: 16a1b0c048de3dd2233080c4e928643c4008ad0aea7fa79ca515b9f39377309d
Contents?: true
Size: 317 Bytes
Versions: 9
Compression:
Stored size: 317 Bytes
Contents
require "json" module Ohm class Model # Export a JSON representation of the model by encoding `to_hash`. def to_json(*args) to_hash.to_json(*args) end end module Collection # Sugar for to_a.to_json for all types of Sets def to_json(*args) to_a.to_json(*args) end end end
Version data entries
9 entries across 9 versions & 2 rubygems