aboutsummaryrefslogtreecommitdiff
path: root/app/models/section.rb
diff options
context:
space:
mode:
authorhellekin <hellekin@cepheide.org>2020-10-08 17:53:48 +0200
committerhellekin <hellekin@cepheide.org>2020-10-08 17:53:48 +0200
commite161729c3b6f297e07c0ae1796afa28826da58fe (patch)
treec385147a2f3810ed49895a5ed76195c2dd1d41ae /app/models/section.rb
parent52f87943b4a56e880e4964bd2e2a3cafab20a0d8 (diff)
downloadincommon-map-e161729c3b6f297e07c0ae1796afa28826da58fe.tar.gz
Fix typo
Diffstat (limited to 'app/models/section.rb')
-rw-r--r--app/models/section.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/section.rb b/app/models/section.rb
index 670c543..0a1fbf2 100644
--- a/app/models/section.rb
+++ b/app/models/section.rb
@@ -5,6 +5,6 @@ class Section < ApplicationRecord
acts_as_list column: :rank, scope: :category
validates :name,
- uniqueness: { scope: category_id },
+ uniqueness: { scope: :category_id },
length: 3..64
end