Fix immediate response on status_message create
This commit is contained in:
parent
5b29cff56a
commit
5041a84882
1 changed files with 6 additions and 1 deletions
|
|
@ -38,8 +38,13 @@ class StatusMessagesController < ApplicationController
|
||||||
:partial => 'shared/stream_element',
|
:partial => 'shared/stream_element',
|
||||||
:locals => {
|
:locals => {
|
||||||
:post => @status_message,
|
:post => @status_message,
|
||||||
|
:person => @status_message.person,
|
||||||
|
:comments => [],
|
||||||
:aspects => current_user.aspects,
|
:aspects => current_user.aspects,
|
||||||
:current_user => current_user})},
|
:current_user => current_user
|
||||||
|
}
|
||||||
|
)
|
||||||
|
},
|
||||||
:status => 201 }
|
:status => 201 }
|
||||||
format.html{ respond_with @status_message }
|
format.html{ respond_with @status_message }
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue