diff options
author | James McKinney <james@slashpoundbang.com> | 2015-05-21 15:30:59 -0400 |
---|---|---|
committer | James McKinney <james@slashpoundbang.com> | 2015-05-21 15:30:59 -0400 |
commit | 90e98a2ae53add95264d92c4bdda0376249d2578 (patch) | |
tree | 9f1e2e5aca502765a635bed394a267ea6c7744c0 /app/models/info_request.rb | |
parent | dd289908964c8d60e33ce71724dc9e36c3beb765 (diff) |
InfoRequest: Remove unused method
Diffstat (limited to 'app/models/info_request.rb')
-rw-r--r-- | app/models/info_request.rb | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/app/models/info_request.rb b/app/models/info_request.rb index 38627df50..182ddd6df 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 |