Sha256: 44b9194d5e9ba29529139cc76379a38433562d980ae4145eee648911d725ba4d
Contents?: true
Size: 508 Bytes
Versions: 50
Compression:
Stored size: 508 Bytes
Contents
# frozen_string_literal: true module Decidim module Core # This interface represents an amendable object. module AmendableInterface include Decidim::Api::Types::BaseInterface description "An interface that can be used in objects with amendments" field :amendments, [Decidim::Core::AmendmentType, { null: true }], description: "This object's amendments", null: false def amendments object.visible_amendments_for(context[:current_user]) end end end end
Version data entries
50 entries across 50 versions & 1 rubygems