Class: Decidim::Core::TraceVersionType

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

Instance Method Summary collapse

Instance Method Details

#editorObject



12
13
14
15
# File '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