aboutsummaryrefslogtreecommitdiffstats
path: root/app/models/info_request.rb
diff options
context:
space:
mode:
authorLouise Crow <louise.crow@gmail.com>2015-05-22 18:23:24 +0100
committerLouise Crow <louise.crow@gmail.com>2015-05-22 18:23:24 +0100
commitc79447c370a931e7d899fa29783567341708e0dd (patch)
treeadae495f97a21fcfea605e3802c99be653965af7 /app/models/info_request.rb
parentd0d122822276fed2dcb40bd25c631e18c32eae85 (diff)
parent90e98a2ae53add95264d92c4bdda0376249d2578 (diff)
Merge remote-tracking branch 'jpmckinney_github/unused_method' into rails-3-develop
Diffstat (limited to 'app/models/info_request.rb')
-rw-r--r--app/models/info_request.rb13
1 files changed, 0 insertions, 13 deletions
diff --git a/app/models/info_request.rb b/app/models/info_request.rb
index bef5d1893..f11b3a854 100644
--- a/app/models/info_request.rb
+++ b/app/models/info_request.rb
@@ -197,19 +197,6 @@ class InfoRequest < ActiveRecord::Base
rescue MissingSourceFile, NameError
end
- # only check on create, so existing models with mixed case are allowed
- def validate_on_create
- if !self.title.nil? && !MySociety::Validate.uses_mixed_capitals(self.title, 10)
- errors.add(:title, _('Please write the summary using a mixture of capital and lower case letters. This makes it easier for others to read.'))
- end
- if !self.title.nil? && title.size > 200
- errors.add(:title, _('Please keep the summary short, like in the subject of an email. You can use a phrase, rather than a full sentence.'))
- end
- if !self.title.nil? && self.title =~ /^(FOI|Freedom of Information)\s*requests?$/i
- errors.add(:title, _('Please describe more what the request is about in the subject. There is no need to say it is an FOI request, we add that on anyway.'))
- end
- end
-
OLD_AGE_IN_DAYS = 21.days
def visible_comments