Sha256: 8075363ceed2fe06893242a7ed45f078007b9ce00a8da6e8e90dd521af95b176
Contents?: true
Size: 553 Bytes
Versions: 25
Compression:
Stored size: 553 Bytes
Contents
require 'jsonapi-serializers' class ForestLiana::CollectionSerializer include JSONAPI::Serializer attribute :name attribute :display_name attribute :icon attribute :fields attribute :only_for_relationships attribute :is_virtual attribute :is_read_only attribute :is_searchable attribute :pagination_type has_many :actions do object.actions end has_many :segments do object.segments end def relationship_related_link(attribute_name) nil end def relationship_self_link(attribute_name) nil end end
Version data entries
25 entries across 25 versions & 1 rubygems