Module: Decidim::Core::CoauthorableInterface

Includes:
Api::Types::BaseInterface
Defined in:
lib/decidim/api/interfaces/coauthorable_interface.rb

Overview

This interface represents a coauthorable object.

Instance Method Summary collapse

Instance Method Details

#authorObject



19
20
21
22
# File 'lib/decidim/api/interfaces/coauthorable_interface.rb', line 19

def author
  author = object.creator_identity
  author if author.is_a?(Decidim::User) || author.is_a?(Decidim::UserGroup)
end