post mode menu fixes

This commit is contained in:
albert
2011-10-22 01:56:36 -04:00
parent 8a5f26f3e5
commit 02c0a0f1c6
8 changed files with 47 additions and 18 deletions

View File

@@ -18,7 +18,7 @@ class PostsController < ApplicationController
def update
@post = Post.find(params[:id])
@post.update_attributes(params[:post])
@post.update_attributes(params[:post], :as => CurrentUser.role)
respond_with(@post) do |format|
format.json do
render :json => @post.to_json