diff options
author | mhasbini <mohammad.hasbini@gmail.com> | 2017-03-31 18:11:28 +0300 |
---|---|---|
committer | mhasbini <mohammad.hasbini@gmail.com> | 2017-04-02 12:48:43 +0300 |
commit | 0a09925dcef1976970bc2674432f69d46786c38f (patch) | |
tree | f3b82c46b3050864fbd2e3331faae8ea37c3b6a3 /app/models/milestone.rb | |
parent | 9fc17f6f4abdb04f3cf1b60b87bd67b894a19c39 (diff) | |
download | gitlab-ce-0a09925dcef1976970bc2674432f69d46786c38f.tar.gz |
Enable Style/Proc cop for rubocop
Diffstat (limited to 'app/models/milestone.rb')
-rw-r--r-- | app/models/milestone.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/milestone.rb b/app/models/milestone.rb index e85d5709624..ac205b9b738 100644 --- a/app/models/milestone.rb +++ b/app/models/milestone.rb @@ -30,7 +30,7 @@ class Milestone < ActiveRecord::Base validates :title, presence: true, uniqueness: { scope: :project_id } validates :project, presence: true - validate :start_date_should_be_less_than_due_date, if: Proc.new { |m| m.start_date.present? && m.due_date.present? } + validate :start_date_should_be_less_than_due_date, if: proc { |m| m.start_date.present? && m.due_date.present? } strip_attributes :title |