class FormalityLevelSerializer < ApplicationSerializer
  class Reference < ApplicationSerializer
    attributes :iri
    attributes :name

    def iri
      urls.license_model_url(object, host: Settings.hostname)
    end
  end

  attributes :iri
  attributes :name, :description

  def iri
    Reference.new(object).iri
  end
end

class FormalityLevelSerializer < ApplicationSerializer
  class Reference < ApplicationSerializer
    attributes :iri
    attributes :name

    def iri
      urls.formality_level_url(object, host: Settings.hostname)
    end
  end

  attributes :iri
  attributes :name, :description

  def iri
    Reference.new(object).iri
  end
end

Fix FormalityLevelSerializer using wrong url.
Fix FormalityLevelSerializer using wrong url.
