hummingbird-me/hummingbird

View on GitHub
app/serializers/current_user_serializer.rb

Summary

Maintainability
A
0 mins
Test Coverage
class CurrentUserSerializer < UserSerializer
  embed :ids, include: true

  attributes :email,
             :newUsername,
             :sfw_filter,
             :last_backup,
             :has_dropbox?,
             :has_facebook?,
             :confirmed?,
             :pro_expires_at,
             :import_status,
             :import_from,
             :import_error

  has_one :pro_membership_plan

  def newUsername
    object.name
  end
end