Skip to content

Commit

Permalink
Merge pull request rubycentral#170 from rubycentral/abstract-length
Browse files Browse the repository at this point in the history
Add more specificity to the abstract length check
  • Loading branch information
barrettclark authored Feb 4, 2020
2 parents 4637534 + 4c2f2df commit 7b4fbfe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/proposal.rb
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ def has_reviewer_activity?
private

def abstract_length
return unless abstract.gsub(/\r/, '').gsub(/\n/, '').length > 600
return unless abstract_changed? && abstract.gsub(/\r/, '').gsub(/\n/, '').length > 600
errors.add(:abstract, "is too long (maximum is 600 characters)")
end

Expand Down

0 comments on commit 7b4fbfe

Please sign in to comment.