remove redundent association keys
In the api_users_controller#profile_show remove :genres, :instruments keys from the association includes
This commit is contained in:
parent
fa35930c75
commit
d976cdf866
|
|
@ -95,8 +95,7 @@ class ApiUsersController < ApiController
|
|||
@profile = User.includes([{musician_instruments: :instrument},
|
||||
{band_musicians: :user},
|
||||
{genre_players: :genre},
|
||||
:bands, :instruments, :genres,
|
||||
:online_presences, :performance_samples])
|
||||
:bands, :online_presences, :performance_samples])
|
||||
.find(params[:id])
|
||||
|
||||
@show_teacher_profile = params[:show_teacher]
|
||||
|
|
|
|||
Loading…
Reference in New Issue