Class: Decidim::Core::TraceVersionType

Inherits:
Api::Types::BaseObject show all
Defined in:
decidim-core/lib/decidim/api/types/trace_version_type.rb

Instance Method Summary collapse

Instance Method Details

#editorObject


12
13
14
15
# File 'decidim-core/lib/decidim/api/types/trace_version_type.rb', line 12

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