diff options
author | Timothy Andrew <mail@timothyandrew.net> | 2016-09-20 15:43:11 +0300 |
---|---|---|
committer | Timothy Andrew <mail@timothyandrew.net> | 2016-09-20 15:43:11 +0300 |
commit | 71d4bf721be6cd57ab3480bc5efb11a91d6e1891 (patch) | |
tree | 81b567b59729128e38121f4bb7286383945aa99b /app/models/issue | |
parent | 6f194e28e4fd8380432420b2b525b134ddb18a3d (diff) |
Implement (some) comments from @DouweM's review.
- Move things common to `Issue` and `MergeRequest` into `Issuable`
- Move more database-specific functions into `Gitlab::Database`
- Indentation changes and other minor refactorings.
Diffstat (limited to 'app/models/issue')
-rw-r--r-- | app/models/issue/metrics.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/issue/metrics.rb b/app/models/issue/metrics.rb index 4436696cc1a..012d545c440 100644 --- a/app/models/issue/metrics.rb +++ b/app/models/issue/metrics.rb @@ -10,7 +10,7 @@ class Issue::Metrics < ActiveRecord::Base self.first_added_to_board_at = Time.now end - self.save if self.changed? + self.save end private |