improve achievement management and and views
This commit is contained in:
7
app/helpers/achievements_helper.rb
Normal file
7
app/helpers/achievements_helper.rb
Normal file
@@ -0,0 +1,7 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
module AchievementsHelper
|
||||
def achievement_completed(achievement_id, user)
|
||||
CompletedWowAchievement.where(wow_achievement_id: achievement_id, wow_character: user.wow_characters).exists?
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user