Fix all the trailing whitespace

This commit is contained in:
Jakub Arnold
2013-02-07 16:45:24 +01:00
parent 1839614bcc
commit 61654ab8f0
230 changed files with 1165 additions and 1165 deletions

View File

@ -8,7 +8,7 @@ class CategoriesController < ApplicationController
list = CategoryList.new(current_user)
render_serialized(list, CategoryListSerializer)
end
def show
@category = Category.where(slug: params[:id]).first
render_serialized(@category, CategorySerializer)
@ -20,7 +20,7 @@ class CategoriesController < ApplicationController
@category = Category.create(category_params.merge(user: current_user))
return render_json_error(@category) unless @category.save
render_serialized(@category, CategorySerializer)
end
@ -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