Merge pull request #137 from shapkin/patch-1

Update app/controllers/categories_controller.rb
This commit is contained in:
Robin Ward 2013-02-13 07:20:50 -08:00
commit 34329ee598
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