Refactoring of message system.
This commit is contained in:
parent
a0e10141dc
commit
3ea8d5a2ef
21 changed files with 94 additions and 113 deletions
|
|
@ -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])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue