Commit bed487d1 authored by Rémy Coutable's avatar Rémy Coutable

Merge branch 'master' into 'master'

missing letter

See merge request gitlab-org/gitlab!18330
parents 7113c838 4b4ccb33
...@@ -7,7 +7,7 @@ class RepositoryLanguage < ApplicationRecord ...@@ -7,7 +7,7 @@ class RepositoryLanguage < ApplicationRecord
default_scope { includes(:programming_language) } default_scope { includes(:programming_language) }
validates :project, presence: true validates :project, presence: true
validates :share, inclusion: { in: 0..100, message: "The share of a lanuage is between 0 and 100" } validates :share, inclusion: { in: 0..100, message: "The share of a language is between 0 and 100" }
validates :programming_language, uniqueness: { scope: :project_id } validates :programming_language, uniqueness: { scope: :project_id }
delegate :name, :color, to: :programming_language delegate :name, :color, to: :programming_language
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment