Module: Decidim::Core::AuthorableInterface
- Includes:
- Api::Types::BaseInterface
- Defined in:
- lib/decidim/api/interfaces/authorable_interface.rb
Overview
This interface represents a commentable object.
Instance Method Summary collapse
Instance Method Details
#author ⇒ Object
14 15 16 17 18 19 20 21 |
# File 'lib/decidim/api/interfaces/authorable_interface.rb', line 14 def = if object.respond_to?(:normalized_author) object&. elsif object.respond_to?(:creator_identity) object&.creator_identity end if .is_a?(Decidim::UserBaseEntity) end |