From 3b1148cac0965ecf4ff42a204c013a0e8517feb1 Mon Sep 17 00:00:00 2001 From: Evan Phoenix Date: Thu, 12 May 2016 14:16:21 -0700 Subject: [PATCH] Bump the limits to 1000 temprorarily --- app/decorators/proposal_decorator.rb | 2 +- app/models/proposal.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/decorators/proposal_decorator.rb b/app/decorators/proposal_decorator.rb index 6a04f3c1b..e5c6ad32d 100644 --- a/app/decorators/proposal_decorator.rb +++ b/app/decorators/proposal_decorator.rb @@ -121,7 +121,7 @@ def speaker_input(form) def abstract_input(form) form.input :abstract, placeholder: 'What is your talk about?', - maxlength: 605, input_html: { class: 'watched js-maxlength-alert', rows: 5 }, + maxlength: 1000, input_html: { class: 'watched js-maxlength-alert', rows: 5 }, hint: 'Provide a concise description for the program limited to 600 characters or less.' end diff --git a/app/models/proposal.rb b/app/models/proposal.rb index 43942aeed..19d4c1403 100644 --- a/app/models/proposal.rb +++ b/app/models/proposal.rb @@ -21,7 +21,7 @@ class Proposal < ActiveRecord::Base # This used to be 600, but it's so confusing for users that the browser # uses \r\n for newlines and they're over the 600 limit because of # bytes they can't see. So we give them a bit of tolerance. - validates :abstract, length: {maximum: 625} + validates :abstract, length: {maximum: 1000} validates :title, length: {maximum: 60} serialize :last_change