improve reputation display and flash messages

This commit is contained in:
2021-05-03 21:24:06 +02:00
parent bb6b5e3362
commit 62cdf32593
6 changed files with 50 additions and 9 deletions

View File

@@ -7,5 +7,7 @@ class WowCharactersController < ProtectedController
def show
@wow_character = current_user.wow_characters.includes(wow_standings: { wow_reputation: { wow_reputation_tier: :wow_reputation_tier_levels }}).find(params[:id])
meta_reputation_ids = @wow_character.wow_standings.map { |standing| standing.wow_reputation.meta_wow_reputation_id }.uniq
@meta_wow_reputations = WowReputation.find(meta_reputation_ids)
end
end