summaryrefslogtreecommitdiff
path: root/app/models/member.rb
diff options
context:
space:
mode:
authorJames Lopez <james.lopez@vodafone.com>2015-11-12 12:29:01 +0000
committerJames Lopez <james.lopez@vodafone.com>2015-11-12 12:29:01 +0000
commit56ea71a3b19396b01b3b8495337fbf22c534524f (patch)
treec27e155d363f4c2d32ef11db1916e32f04a8d4ba /app/models/member.rb
parente11bfa6b86c5b1b838e7e438bcaa599df668f7be (diff)
downloadgitlab-ce-56ea71a3b19396b01b3b8495337fbf22c534524f.tar.gz
fixing rubocop - random code not related to the changes
Diffstat (limited to 'app/models/member.rb')
-rw-r--r--app/models/member.rb14
1 files changed, 9 insertions, 5 deletions
diff --git a/app/models/member.rb b/app/models/member.rb
index a7c599b3598..eed9f2537e9 100644
--- a/app/models/member.rb
+++ b/app/models/member.rb
@@ -35,11 +35,15 @@ class Member < ActiveRecord::Base
allow_nil: true }
validates :access_level, inclusion: { in: Gitlab::Access.all_values }, presence: true
validates :invite_email, presence: { if: :invite? },
- email: { strict_mode: true,
- allow_nil: true },
- uniqueness: { scope: [:source_type,
- :source_id],
- allow_nil: true }
+ email: {
+ strict_mode: true,
+ allow_nil: true
+ },
+ uniqueness: {
+ scope: [:source_type,
+ :source_id],
+ allow_nil: true
+ }
scope :invite, -> { where(user_id: nil) }
scope :non_invite, -> { where("user_id IS NOT NULL") }