Sha256: 14318f8c8122e15c3a74cd23c7b0aebdab0de436c7ef23b1c5da2623887066be
Contents?: true
Size: 298 Bytes
Versions: 1
Compression:
Stored size: 298 Bytes
Contents
module NinjaModel module Marshalling extend ActiveSupport::Concern module InstanceMethods def marshal_dump ActiveSupport::JSON.encode(attributes) end def marshal_load(data) self.instantiate(ActiveSupport::JSON.decode(data)) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ninja-model-1.0.0 | lib/ninja_model/marshalling.rb |