podemos-info/census

View on GitHub
app/serializers/scope_serializer.rb

Summary

Maintainability
A
0 mins
Test Coverage
# frozen_string_literal: true

class ScopeSerializer < ActiveModel::Serializer
  attributes :id, :name, :scope_type, :code, :mappings

  def scope_type
    object.scope_type.name
  end
end