Permalink
Browse files

Removed non-printing character constraint from model titles.

  • Loading branch information...
1 parent fed9976 commit 5435d9a08cd861e68dfa93e452ffca7102a0aa11 @djnawara committed Dec 11, 2008
Showing with 0 additions and 8 deletions.
  1. +0 −8 app/models/project.rb
View
@@ -8,16 +8,8 @@ class Project < ActiveRecord::Base
#################
# VALIDATIONS
-
- #################
- # CONSTANTS
-
- RE_TITLE_OK = /\A[^[:cntrl:]\\<>\/&]*\z/ # Unicode, permissive
- MSG_TITLE_BAD = "must not contain non-printing characters or \\&gt;&lt;&amp;/ please."
-
validates_presence_of :title
validates_length_of :title, :within => 2..40
- validates_format_of :title, :with => RE_TITLE_OK, :message => MSG_TITLE_BAD
validates_presence_of :client
validates_length_of :client, :within => 2..40

0 comments on commit 5435d9a

Please sign in to comment.