diff options
author | Azul <azul@riseup.net> | 2016-05-23 11:24:21 +0200 |
---|---|---|
committer | Azul <azul@riseup.net> | 2016-05-23 11:24:21 +0200 |
commit | fcc8207f84249612eba719b8aa77cd7c51e5ad5a (patch) | |
tree | d2b0b601c8d5875afd076be61f6a447cdb310d6c /engines/support/app/models/ticket.rb | |
parent | da00a2068ae8b6129384f06baafdc039bdaab003 (diff) | |
parent | b851fe2fd6e0029df81976b647ede7190a1fd547 (diff) |
Merge remote-tracking branch 'pr/220' into develop
Diffstat (limited to 'engines/support/app/models/ticket.rb')
-rw-r--r-- | engines/support/app/models/ticket.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/support/app/models/ticket.rb b/engines/support/app/models/ticket.rb index 4615a10..025e2ab 100644 --- a/engines/support/app/models/ticket.rb +++ b/engines/support/app/models/ticket.rb @@ -37,9 +37,11 @@ class Ticket < CouchRest::Model::Base # email can be nil, "", or valid address. # validation provided by 'valid_email' gem. + # mx validation depends on network availability and is disabled in test + # and development environment validates :email, :allow_blank => true, :email => true, - :mx_with_fallback => true + :mx_with_fallback => Rails.env.production? def self.search(options = {}) @selection = TicketSelection.new(options) |