summaryrefslogtreecommitdiff
path: root/app/models/sent_notification.rb
diff options
context:
space:
mode:
authorValery Sizov <vsv2711@gmail.com>2015-11-25 18:18:44 +0200
committerValery Sizov <vsv2711@gmail.com>2015-11-25 18:18:44 +0200
commit40ff1318d29884e4d17e7e450d8a7633e5ac36a9 (patch)
tree80363a35c2bf62156678b351cbd0802021f9ba54 /app/models/sent_notification.rb
parent913b408c021d3a9e8b940f580e1e537ef6ed77fd (diff)
downloadgitlab-ce-40ff1318d29884e4d17e7e450d8a7633e5ac36a9.tar.gz
Rails update to 4.2.4
Diffstat (limited to 'app/models/sent_notification.rb')
-rw-r--r--app/models/sent_notification.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/app/models/sent_notification.rb b/app/models/sent_notification.rb
index 3eed5c16e45..d8fe65b06f6 100644
--- a/app/models/sent_notification.rb
+++ b/app/models/sent_notification.rb
@@ -17,9 +17,8 @@ class SentNotification < ActiveRecord::Base
belongs_to :noteable, polymorphic: true
belongs_to :recipient, class_name: "User"
- validate :project, :recipient, :reply_key, presence: true
- validate :reply_key, uniqueness: true
-
+ validates :project, :recipient, :reply_key, presence: true
+ validates :reply_key, uniqueness: true
validates :noteable_id, presence: true, unless: :for_commit?
validates :commit_id, presence: true, if: :for_commit?
validates :line_code, format: { with: /\A[a-z0-9]+_\d+_\d+\Z/ }, allow_blank: true