Sha256: c1568fbbc03bb143736948ec88f78a81139f7b56583855225832ecfc368d3678
Contents?: true
Size: 434 Bytes
Versions: 1
Compression:
Stored size: 434 Bytes
Contents
require 'active_model/serializable' module ActiveModel # DefaultSerializer # # Provides a constant interface for all items class DefaultSerializer include ActiveModel::Serializable attr_reader :object def initialize(object, options=nil) @object = object end def as_json(options={}) @object.as_json end alias serializable_hash as_json alias serializable_object as_json end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
active_model_serializers-0.9.0.alpha1 | lib/active_model/default_serializer.rb |