hummingbird-me/kitsu-server

View on GitHub
app/models/character_voice.rb

Summary

Maintainability
A
0 mins
Test Coverage
B
85%
class CharacterVoice < ApplicationRecord
  belongs_to :media_character, inverse_of: :voices
  belongs_to :person, inverse_of: :voices
  belongs_to :licensor, class_name: 'Producer', optional: true

  validates :locale, presence: true

  def rails_admin_label
    "#{person.name} [#{locale}]"
  end
end