Skip to content
Snippets Groups Projects
Commit 95c1b703 authored by Mauricio Giacomini Girardello's avatar Mauricio Giacomini Girardello
Browse files

including ActionController::Serialization in ApplicationController

parent a2dbe690
No related branches found
No related tags found
No related merge requests found
class ApplicationController < ActionController::API
include ActionController::Serialization
include DeviseTokenAuth::Concerns::SetUserByToken
include Pundit
respond_to :json
# Prevent CSRF attacks by raising an exception.
# For APIs, you may want to use :null_session instead.
# protect_from_forgery with: :null_session
......
class UserSerializer < ActiveModel::Serializer
attributes :id, :email, :created_at, :updated_at, :auth_token
attributes :id, :email, :created_at, :updated_at
has_many :roles
has_many :institutions
end
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment