Sha256: bcae4b1a8da1636daa77e202036bebf350c032a6624940e9201ed1dc53b960f7
Contents?: true
Size: 479 Bytes
Versions: 1
Compression:
Stored size: 479 Bytes
Contents
# encoding: utf-8 class MagicAddresses::AddressSerializer < ActiveModel::Serializer ## defaults attributes :id, :created_at, :updated_at ## Address - Attributes attributes :name, :street, :street_additional, :number, :postalcode, :city, :district, :subdistrict, :state, :country ## Location attributes :latitude, :longitude ## Owner attributes :owner_type, :owner_id, :owner def owner { id: object.owner_id, type: object.owner_type } end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
magic_addresses-0.0.39.rc8 | lib/app/serializers/magic_addresses/address_serializer.rb |