add global reputations page

This commit is contained in:
2021-05-05 20:20:06 +02:00
parent 62cdf32593
commit 3366251172
34 changed files with 170 additions and 6 deletions

View File

@@ -11,5 +11,6 @@ class WowReputation < ApplicationRecord
validates :name, presence: true
validates :reputation_id, presence: true, uniqueness: true
scope :meta_reputations, -> { where(meta_wow_reputation: nil) }
scope :meta_reputations, -> { where(description: nil) }
scope :non_meta_reputations, -> { where.not(description: nil) }
end