Skip to content
Snippets Groups Projects
Commit 2f5879af authored by Mateus Rambo Strey's avatar Mateus Rambo Strey
Browse files

add provider to user serializer

parent 397e7faf
No related branches found
No related tags found
No related merge requests found
class UserSerializer < ActiveModel::Serializer class UserSerializer < ActiveModel::Serializer
cache key: 'user', expires_in: 4.hours cache key: 'user', expires_in: 4.hours
attributes :id, :email, :name, :description, :role_ids, :institution_ids, :avatar, :likes_count, :learning_objects_count, :collections_count, :created_at, :updated_at attributes :id, :email, :provider, :name, :description, :role_ids, :institution_ids, :avatar, :likes_count, :follows_count, :learning_objects_count, :collections_count, :created_at, :updated_at
end end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment