summaryrefslogtreecommitdiff
path: root/app/models/namespace.rb
diff options
context:
space:
mode:
authorAndrew8xx8 <avk@8xx8.ru>2013-02-12 11:16:45 +0400
committerAndrew8xx8 <avk@8xx8.ru>2013-02-12 11:16:45 +0400
commitb5db541338314b01423d79fb9155e8c4ddc5d494 (patch)
treee6d48ebfb77a74054974b58327ef99d596d00ea6 /app/models/namespace.rb
parent9a22ac63eca587d5efd56d626b7579236734cda0 (diff)
downloadgitlab-ce-b5db541338314b01423d79fb9155e8c4ddc5d494.tar.gz
All scopes must be in lambdas
Diffstat (limited to 'app/models/namespace.rb')
-rw-r--r--app/models/namespace.rb2
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}%")