The code powering m.abunchtell.com https://m.abunchtell.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

26 lines
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