custom_field.rb

Christian Bryn, 2008-07-31 16:20

Download (286 Bytes)

 
1
# This patch will allow for using dots in custom field name, needed seeing as dots are used for abbreviations.
2
# The patch applies to app/models/custom_field.rb
3
35c35
4
<   validates_format_of :name, :with => /^[\w\s\'\-]*$/i
5
---
6
>   validates_format_of :name, :with => /^[\w.\s\'\-]*$/i