mirror of
https://github.com/diaspora/diaspora.git
synced 2026-04-29 03:01:03 -04:00
made everyting so the lastest is the first thing you see
This commit is contained in:
@@ -3,7 +3,7 @@ class BlogsController < ApplicationController
|
||||
|
||||
|
||||
def index
|
||||
@blogs = Blog.all
|
||||
@blogs = Blog.criteria.all.order_by( [:created_at, :desc] )
|
||||
end
|
||||
|
||||
def show
|
||||
|
||||
@@ -2,7 +2,7 @@ class BookmarksController < ApplicationController
|
||||
before_filter :authenticate_user!
|
||||
|
||||
def index
|
||||
@bookmarks = Bookmark.all
|
||||
@bookmarks = Bookmark.criteria.all.order_by( [:created_at, :desc] )
|
||||
end
|
||||
|
||||
def edit
|
||||
|
||||
@@ -2,7 +2,7 @@ class FriendsController < ApplicationController
|
||||
before_filter :authenticate_user!
|
||||
|
||||
def index
|
||||
@friends = Friend.all
|
||||
@friends = Friend.criteria.all.order_by( [:created_at, :desc] )
|
||||
end
|
||||
|
||||
def show
|
||||
|
||||
@@ -3,7 +3,7 @@ class StatusMessagesController < ApplicationController
|
||||
include StatusMessagesHelper
|
||||
|
||||
def index
|
||||
@status_messages = StatusMessage.all
|
||||
@status_messages = StatusMessage.criteria.all.order_by( [:created_at, :desc] )
|
||||
@friends = Friend.all
|
||||
|
||||
respond_to do |format|
|
||||
|
||||
@@ -3,7 +3,7 @@ class UsersController < ApplicationController
|
||||
before_filter :authenticate_user!
|
||||
|
||||
def index
|
||||
@users = User.all
|
||||
@users = User.criteria.all.order_by( [:created_at, :desc] )
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user