diff options
Diffstat (limited to 'app/models/namespace.rb')
| -rw-r--r-- | app/models/namespace.rb | 20 | 
1 files changed, 10 insertions, 10 deletions
diff --git a/app/models/namespace.rb b/app/models/namespace.rb index b48d73dcae7..583d4fb5244 100644 --- a/app/models/namespace.rb +++ b/app/models/namespace.rb @@ -181,16 +181,16 @@ class Namespace < ActiveRecord::Base    def ancestors      return self.class.none unless parent_id -    Gitlab::GroupHierarchy. -      new(self.class.where(id: parent_id)). -      base_and_ancestors +    Gitlab::GroupHierarchy +      .new(self.class.where(id: parent_id)) +      .base_and_ancestors    end    # Returns all the descendants of the current namespace.    def descendants -    Gitlab::GroupHierarchy. -      new(self.class.where(parent_id: id)). -      base_and_descendants +    Gitlab::GroupHierarchy +      .new(self.class.where(parent_id: id)) +      .base_and_descendants    end    def user_ids_for_project_authorizations @@ -253,10 +253,10 @@ class Namespace < ActiveRecord::Base    end    def refresh_access_of_projects_invited_groups -    Group. -      joins(project_group_links: :project). -      where(projects: { namespace_id: id }). -      find_each(&:refresh_members_authorized_projects) +    Group +      .joins(project_group_links: :project) +      .where(projects: { namespace_id: id }) +      .find_each(&:refresh_members_authorized_projects)    end    def remove_exports!  | 
