Skip to content

Commit aedc9f5

Browse files
committed
Validate uniqueness of the from address.
Fixes #2745.
1 parent ddcd468 commit aedc9f5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

app/models/preference.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ class Preference < ApplicationRecord
22
belongs_to :user
33
belongs_to :sms_context, :class_name => 'Context'
44

5+
validates_uniqueness_of :sms_email, :case_sensitive => false
6+
57
def self.themes
68
{ :black => 'black', :light_blue => 'light_blue' }
79
end

0 commit comments

Comments
 (0)