module Decidim::Core::AmendableEntityInterface

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

Public Class Methods

resolve_type(obj, _ctx) click to toggle source
# File lib/decidim/api/interfaces/amendable_entity_interface.rb, line 13
def self.resolve_type(obj, _ctx)
  "#{obj.class.name}Type".constantize
end