Sha256: fd88601fbedb85f61173be42e490fae91967a9fa80d1dad06f033161c6d765c7
Contents?: true
Size: 531 Bytes
Versions: 10
Compression:
Stored size: 531 Bytes
Contents
# frozen_string_literal: true module Decidim module Core # This interface represents an amendable object. AmendableInterface = GraphQL::InterfaceType.define do name "AmendableInterface" description "An interface that can be used in objects with amendments" field :amendments, !types[Decidim::Core::AmendmentType] do description "This object's amendments" resolve lambda { |obj, _args, ctx| obj.visible_amendments_for(ctx[:current_user]) } end end end end
Version data entries
10 entries across 10 versions & 1 rubygems