Sha256: cb2b9b5eb09b62a9fd0d20c9c60a9c117b11fbf9b94a48ceac0b5b7cf9f04ebb
Contents?: true
Size: 305 Bytes
Versions: 2
Compression:
Stored size: 305 Bytes
Contents
module DeviseTokenAuth class ResourceSerializer def initialize(resource) @resource = resource end attr_reader :resource def as_json(options) { status: "success", data: resource.as_json(except: [:tokens, :created_at, :updated_at]) } end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
xing_backend_token_auth-0.1.32 | app/serializers/devise_token_auth/resource_serializer.rb |
xing_backend_token_auth-0.1.31 | app/serializers/devise_token_auth/resource_serializer.rb |