Skip to content

Commit

Permalink
Update app/models/media_object.rb
Browse files Browse the repository at this point in the history
Co-authored-by: Chris Colvard <chris.colvard@gmail.com>
  • Loading branch information
masaball and cjcolvar authored Feb 24, 2025
1 parent cc17de8 commit acaa95f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/media_object.rb
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def validate_note_type
end

def validate_language
Array(language).each{|i|errors.add(:language, "Language not recognized (#{i[:code]})") unless LanguageTerm::Iso6392::map[i[:code]] }
Array(language).each{|i|errors.add(:language, "Language not recognized (#{i[:code]})") unless LanguageTerm::Iso6392.map[i[:code]] }
end

def validate_related_items
Expand Down

0 comments on commit acaa95f

Please sign in to comment.