diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-08-16 17:59:26 +0400 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-08-16 17:59:26 +0400 |
commit | 0e387919c3827260434aed48e1f28ee02ce5e58d (patch) | |
tree | 639ec2577dab7090b1fb65f7f4bdfb276d70699d /app/models | |
parent | ffa234bc80465be160dc93fedeff1eb3ee1c15ba (diff) |
Fixed wrong last-edit time for wiki
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/wiki_page.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/wiki_page.rb b/app/models/wiki_page.rb index b7629b9f24c..a7e6fea5ad0 100644 --- a/app/models/wiki_page.rb +++ b/app/models/wiki_page.rb @@ -89,6 +89,10 @@ class WikiPage @page.versions.map { |v| Commit.new(Gitlab::Git::Commit.new(v)) } end + def commit + versions.first + end + # Returns the Date that this latest version was # created on. def created_at |