diff options
author | Andrew8xx8 <avk@8xx8.ru> | 2013-02-12 11:16:45 +0400 |
---|---|---|
committer | Andrew8xx8 <avk@8xx8.ru> | 2013-02-12 11:16:45 +0400 |
commit | b5db541338314b01423d79fb9155e8c4ddc5d494 (patch) | |
tree | e6d48ebfb77a74054974b58327ef99d596d00ea6 /app/models/namespace.rb | |
parent | 9a22ac63eca587d5efd56d626b7579236734cda0 (diff) | |
download | gitlab-ce-b5db541338314b01423d79fb9155e8c4ddc5d494.tar.gz |
All scopes must be in lambdas
Diffstat (limited to 'app/models/namespace.rb')
-rw-r--r-- | app/models/namespace.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/namespace.rb b/app/models/namespace.rb index 547d383d911..4e157839369 100644 --- a/app/models/namespace.rb +++ b/app/models/namespace.rb @@ -29,7 +29,7 @@ class Namespace < ActiveRecord::Base after_update :move_dir after_destroy :rm_dir - scope :root, where('type IS NULL') + scope :root, -> { where('type IS NULL') } def self.search query where("name LIKE :query OR path LIKE :query", query: "%#{query}%") |