Module: Decidim::Core::EndorsableInterface

Includes:
Api::Types::BaseInterface
Defined in:
decidim-core/lib/decidim/api/interfaces/endorsable_interface.rb

Overview

This interface represents an object capable of endorsements.

Instance Method Summary collapse

Instance Method Details

#endorsementsObject


12
13
14
# File 'decidim-core/lib/decidim/api/interfaces/endorsable_interface.rb', line 12

def endorsements
  object.endorsements.map(&:normalized_author)
end