From b036c9e5557b8692b2974b14c12f4279a377af71 Mon Sep 17 00:00:00 2001 From: Alexander Shapkin Date: Tue, 12 Feb 2013 17:49:04 +0400 Subject: [PATCH] Update app/controllers/categories_controller.rb Fix extra whitespace and hash style. Comply with a style guide like in Github. --- app/controllers/categories_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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