summaryrefslogtreecommitdiff
path: root/app/models/milestone.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/milestone.rb
parent9a22ac63eca587d5efd56d626b7579236734cda0 (diff)
downloadgitlab-ce-b5db541338314b01423d79fb9155e8c4ddc5d494.tar.gz
All scopes must be in lambdas
Diffstat (limited to 'app/models/milestone.rb')
-rw-r--r--app/models/milestone.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/milestone.rb b/app/models/milestone.rb
index 8b4c895dc17..457fe18f35b 100644
--- a/app/models/milestone.rb
+++ b/app/models/milestone.rb
@@ -20,8 +20,8 @@ class Milestone < ActiveRecord::Base
has_many :issues
has_many :merge_requests
- scope :active, where(closed: false)
- scope :closed, where(closed: true)
+ scope :active, -> { where(closed: false) }
+ scope :closed, -> { where(closed: true) }
validates :title, presence: true
validates :project, presence: true