Skip to content

Commit

Permalink
remove profession load from user json
Browse files Browse the repository at this point in the history
  • Loading branch information
kaiomagalhaes committed Apr 2, 2024
1 parent 48ad84c commit 428e4fe
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions app/views/users/_user.json.jbuilder
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
json.extract! user, :id, :active, :contract_type, :first_name,
:last_name, :email, :google_id, :slug, :image_url, :seniority, :profession_id, :country, :internal

# Render the profession partial
json.profession user.profession, partial: 'professions/profession', as: :profession

# Render the permissions partial for each permission
json.permissions user.permissions, partial: 'permissions/permission', as: :permission

Expand Down

0 comments on commit 428e4fe

Please sign in to comment.