1
0

application_serializer.rb 268 B

1234567891011121314
  1. # frozen_string_literal: true
  2. class REST::ApplicationSerializer < ActiveModel::Serializer
  3. attributes :id, :name, :website, :redirect_uri,
  4. :client_id, :client_secret
  5. def client_id
  6. object.uid
  7. end
  8. def client_secret
  9. object.secret
  10. end
  11. end