API de comptabilité horaire.
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.

user_serializer.rb 206B

1234567
  1. class UserSerializer
  2. include JSONAPI::Serializer
  3. attributes :email, :username, :admin
  4. has_many :activities
  5. cache_options store: Rails.cache, namespace: 'jsonapi-serializer', expires_in: 1.hour
  6. end