Refactoring of message system.

This commit is contained in:
Benjamin Meichsner 2009-02-18 01:06:35 +01:00
parent a0e10141dc
commit 3ea8d5a2ef
21 changed files with 94 additions and 113 deletions

View file

@ -2,7 +2,7 @@ class MessagesController < ApplicationController
# Renders the "inbox" action.
def index
@messages = Message.user
@messages = Message.all :order => 'created_at DESC', :limit => 100
end
# Creates a new message object.
@ -21,7 +21,6 @@ class MessagesController < ApplicationController
end
end
# Shows a single message.
def show
@message = Message.find(params[:id])