mirror of
https://github.com/discourse/discourse.git
synced 2025-03-23 17:35:43 +08:00
Merge pull request #137 from shapkin/patch-1
Update app/controllers/categories_controller.rb
This commit is contained in:
commit
34329ee598
@ -30,7 +30,7 @@ class CategoriesController < ApplicationController
|
|||||||
@category = Category.where(id: params[:id]).first
|
@category = Category.where(id: params[:id]).first
|
||||||
guardian.ensure_can_edit!(@category)
|
guardian.ensure_can_edit!(@category)
|
||||||
|
|
||||||
json_result(@category, :serializer => CategorySerializer) {|cat| cat.update_attributes(category_params) }
|
json_result(@category, serializer: CategorySerializer) { |cat| cat.update_attributes(category_params) }
|
||||||
end
|
end
|
||||||
|
|
||||||
def destroy
|
def destroy
|
||||||
|
Loading…
x
Reference in New Issue
Block a user