diff options
author | jessib <jessib@riseup.net> | 2013-11-11 16:02:35 -0800 |
---|---|---|
committer | jessib <jessib@riseup.net> | 2013-11-11 16:02:35 -0800 |
commit | 3104677b8d96cd4a118022267abc7bed818f8ddd (patch) | |
tree | 0ee9d5f924a622844ecd729bbff3c4f715d0d644 /help/app/models/ticket.rb | |
parent | d4d970095d0370d7d5744fdc0ebc7b8d9bbd1a4c (diff) |
Rename ticket title to be subject, as that is what we are displaying it as.
Diffstat (limited to 'help/app/models/ticket.rb')
-rw-r--r-- | help/app/models/ticket.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/help/app/models/ticket.rb b/help/app/models/ticket.rb index 74f2050..cd22758 100644 --- a/help/app/models/ticket.rb +++ b/help/app/models/ticket.rb @@ -12,7 +12,7 @@ class Ticket < CouchRest::Model::Base property :created_by, String, :protected => true # nil for anonymous tickets, should never be changed property :regarding_user, String # may be nil or valid username - property :title, String + property :subject, String property :email, String property :is_open, TrueClass, :default => true property :comments, [TicketComment] @@ -33,7 +33,7 @@ class Ticket < CouchRest::Model::Base load_views(own_path.join('..', 'designs', 'ticket')) end - validates :title, :presence => true + validates :subject, :presence => true validates :email, :allow_blank => true, :format => /\A([^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]{2,})\Z/ def self.search(options = {}) |