Fixed user.namespace_id exception if namespace is nil
This commit is contained in:
parent
c31d48dd25
commit
97a92f8ae7
2 changed files with 1 additions and 3 deletions
|
@ -72,7 +72,6 @@ class User < ActiveRecord::Base
|
|||
alias_attribute :private_token, :authentication_token
|
||||
|
||||
delegate :path, to: :namespace, allow_nil: true, prefix: true
|
||||
delegate :id, to: :namespace, allow_nil: true, prefix: true
|
||||
|
||||
# Scopes
|
||||
scope :not_in_project, ->(project) { where("id not in (:ids)", ids: project.users.map(&:id) ) }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue