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:
Alexander Shapkin 2013-02-12 17:49:04 +04:00
parent 4668cf1d54
commit b036c9e555
1 changed files with 1 additions and 1 deletions

View File

@ -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