Commit 3a1022e3818e2a56e151eca22f25379aa5521866
1 parent
569a88a4
Exists in
master
and in
4 other branches
Increase Issue description size to 10k. Fixes #2545
Showing
2 changed files
with
2 additions
and
2 deletions
Show diff stats
app/models/issue.rb
| @@ -24,7 +24,7 @@ class Issue < ActiveRecord::Base | @@ -24,7 +24,7 @@ class Issue < ActiveRecord::Base | ||
| 24 | 24 | ||
| 25 | acts_as_taggable_on :labels | 25 | acts_as_taggable_on :labels |
| 26 | 26 | ||
| 27 | - validates :description, length: { within: 0..2000 } | 27 | + validates :description, length: { within: 0..10000 } |
| 28 | 28 | ||
| 29 | def self.open_for(user) | 29 | def self.open_for(user) |
| 30 | opened.assigned(user) | 30 | opened.assigned(user) |
spec/models/issue_spec.rb
| @@ -29,7 +29,7 @@ describe Issue do | @@ -29,7 +29,7 @@ describe Issue do | ||
| 29 | end | 29 | end |
| 30 | 30 | ||
| 31 | describe "Validation" do | 31 | describe "Validation" do |
| 32 | - it { should ensure_length_of(:description).is_within(0..2000) } | 32 | + it { should ensure_length_of(:description).is_within(0..10000) } |
| 33 | end | 33 | end |
| 34 | 34 | ||
| 35 | describe 'modules' do | 35 | describe 'modules' do |