diff options
| author | mo khan <mo@mokhan.ca> | 2014-05-18 13:53:36 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2014-05-18 13:53:36 -0600 |
| commit | ffc1a2b3ecb7d27dded8e407444b25241ba20633 (patch) | |
| tree | 675d70ae42eb9dbcf605bbcf9601da716ae33e93 /app/controllers/admin | |
| parent | 59d27d23bbcd845da08e009dd0efa2d4c28c059a (diff) | |
display photos newest to oldest.
Diffstat (limited to 'app/controllers/admin')
| -rw-r--r-- | app/controllers/admin/photos_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/admin/photos_controller.rb b/app/controllers/admin/photos_controller.rb index c863aed2..46c489bb 100644 --- a/app/controllers/admin/photos_controller.rb +++ b/app/controllers/admin/photos_controller.rb @@ -1,7 +1,7 @@ module Admin class PhotosController < AdminController def index - @photos = Photo.all + @photos = Photo.order(id: :desc) end def show |
