The code powering m.abunchtell.com https://m.abunchtell.com
Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
 
 
 
 

26 righe
477 B

  1. # frozen_string_literal: true
  2. class ProofProvider::Keybase::Serializer < ActiveModel::Serializer
  3. include RoutingHelper
  4. attribute :avatar
  5. has_many :identity_proofs, key: :signatures
  6. def avatar
  7. full_asset_url(object.avatar_original_url)
  8. end
  9. class AccountIdentityProofSerializer < ActiveModel::Serializer
  10. attributes :sig_hash, :kb_username
  11. def sig_hash
  12. object.token
  13. end
  14. def kb_username
  15. object.provider_username
  16. end
  17. end
  18. end