Merge pull request #144 from ZmagoD/description-len

set experiment description to 255
This commit is contained in:
Zmago Devetak 2016-09-08 14:40:23 +02:00 committed by GitHub
commit e27ee06151
2 changed files with 2 additions and 1 deletions

View file

@ -418,6 +418,7 @@ li.module-hover {
.experiment-description { .experiment-description {
margin-top: 20px; margin-top: 20px;
word-wrap: break-word;
} }
.no-description { .no-description {

View file

@ -21,7 +21,7 @@ class Experiment < ActiveRecord::Base
presence: true, presence: true,
length: { minimum: 4, maximum: 50 }, length: { minimum: 4, maximum: 50 },
uniqueness: { scope: :project, case_sensitive: false } uniqueness: { scope: :project, case_sensitive: false }
validates :description, length: { maximum: 50 } validates :description, length: { maximum: 255 }
validates :project, presence: true validates :project, presence: true
validates :created_by, presence: true validates :created_by, presence: true
validates :last_modified_by, presence: true validates :last_modified_by, presence: true