add helper to show if a pet or mount is owned by the user
This commit is contained in:
@@ -1,4 +1,7 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
module WowPetsHelper
|
||||
def pet_owned?(pet)
|
||||
pet.users.include? current_user
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user