podemos-info/census

View on GitHub
app/views/people/_show_state.arb

Summary

Maintainability
Test Coverage
# frozen_string_literal: true

panel title do
  changes_table_for(resource, changes: local_assigns[:classes], mode: local_assigns[:mode]) do
    chrow :membership_level, machine: :membership_level
    chrow :state, machine: :state
    chrow :verification, machine: :verification
    chrow :phone_verification, machine: :phone_verification
    chrow :scope, change_field: :scope_id do
      resource.full_scope
    end
  end
end