diff options
author | azul <azul@riseup.net> | 2013-11-18 12:03:06 -0800 |
---|---|---|
committer | azul <azul@riseup.net> | 2013-11-18 12:03:06 -0800 |
commit | d2eaffde87286c0cc9c0658503a60706759f7f51 (patch) | |
tree | feb272583ca7d4d98eb3f53e0767586d83493a8c /help/app/models/ticket.rb | |
parent | 7a107e0d38271e7103d3494e06d52f3434022f22 (diff) | |
parent | eca6caac21254c72b512c0bc9b3514b544396c7c (diff) |
Merge pull request #114 from jessib/feature/rename_ticket_title_to_subject
Feature/rename ticket title to subject
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 = {}) |