Module: Decidim::Core::AmendableEntityInterface

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

Overview

This interface should be implemented by any Type that can be used as amendment The only requirement is to have an ID and the Type name be the class.name + Type

Class Method Summary collapse

Class Method Details

.resolve_type(obj, _ctx) ⇒ Object



13
14
15
# File 'lib/decidim/api/interfaces/amendable_entity_interface.rb', line 13

def self.resolve_type(obj, _ctx)
  "#{obj.class.name}Type".constantize
end