mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 16:46:12 +08:00
Update app/controllers/categories_controller.rb
Fix extra whitespace and hash style. Comply with a style guide like in Github.
This commit is contained in:
parent
4668cf1d54
commit
b036c9e555
|
@ -30,7 +30,7 @@ class CategoriesController < ApplicationController
|
|||
@category = Category.where(id: params[:id]).first
|
||||
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
|
||||
|
||||
def destroy
|
||||
|
|
Loading…
Reference in New Issue
Block a user