diff options
author | Riyad Preukschas <riyad@informatik.uni-bremen.de> | 2013-01-11 20:04:14 +0100 |
---|---|---|
committer | Riyad Preukschas <riyad@informatik.uni-bremen.de> | 2013-01-11 20:04:14 +0100 |
commit | 167f26b90d5b4d4b0306a6f0721444c4132141d8 (patch) | |
tree | 2f3e87ceec667260849126d7b677cc68e7d81a9f /app/models/wiki.rb | |
parent | 5aada8cc2adef82780e23b859aeabb71f7d1f5ca (diff) | |
download | gitlab-ce-167f26b90d5b4d4b0306a6f0721444c4132141d8.tar.gz |
Add an ordering scope to Wiki
Diffstat (limited to 'app/models/wiki.rb')
-rw-r--r-- | app/models/wiki.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/models/wiki.rb b/app/models/wiki.rb index 4f113957f99..7f488ca7625 100644 --- a/app/models/wiki.rb +++ b/app/models/wiki.rb @@ -25,6 +25,8 @@ class Wiki < ActiveRecord::Base before_update :set_slug + scope :ordered, order("created_at DESC") + def to_param slug end |