Kill trailing whitespace in ruby files

This commit is contained in:
小太
2013-03-19 23:10:10 +11:00
parent c107f96cec
commit cba839ba76
319 changed files with 2710 additions and 2710 deletions

View File

@@ -6,7 +6,7 @@ class PostsController < ApplicationController
rescue_from Post::SearchError, :with => :rescue_exception
rescue_from ActiveRecord::StatementInvalid, :with => :rescue_exception
rescue_from ActiveRecord::RecordNotFound, :with => :rescue_exception
def index
@post_set = PostSets::Post.new(tag_query, params[:page], params[:limit])
@posts = @post_set.posts
@@ -14,14 +14,14 @@ class PostsController < ApplicationController
format.atom
end
end
def show
@post = Post.find(params[:id])
@post_flag = PostFlag.new(:post_id => @post.id)
@post_appeal = PostAppeal.new(:post_id => @post.id)
respond_with(@post)
end
def show_seq
context = PostSearchContext.new(params)
if context.post_id
@@ -30,14 +30,14 @@ class PostsController < ApplicationController
redirect_to(post_path(params[:id], :tags => params[:tags]))
end
end
def update
@post = Post.find(params[:id])
if Danbooru.config.can_user_see_post?(CurrentUser.user, @post)
@post.update_attributes(params[:post], :as => CurrentUser.role)
end
respond_with(@post) do |format|
format.html do
if @post.errors.any?
@@ -49,13 +49,13 @@ class PostsController < ApplicationController
redirect_to post_path(@post)
end
end
format.json do
render :json => @post.to_json
end
end
end
def revert
@post = Post.find(params[:id])
@version = PostVersion.find(params[:version_id])