diff --git a/app/controllers/categories_controller.rb b/app/controllers/categories_controller.rb index 61db01522f1..1f422878bc2 100644 --- a/app/controllers/categories_controller.rb +++ b/app/controllers/categories_controller.rb @@ -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