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

@@ -2,7 +2,7 @@ module Moderator
class DashboardsController < ApplicationController
before_filter :janitor_only
helper :post_flags, :post_appeals
def show
@dashboard = Moderator::Dashboard::Report.new(params[:min_date] || 2.days.ago.to_date, params[:max_level] || 20)
end

View File

@@ -1,15 +1,15 @@
module Moderator
class InvitationsController < ApplicationController
before_filter :moderator_only
def new
end
def create
User.find(params[:invitation][:user_id]).invite!(params[:invitation][:level])
redirect_to moderator_invitations_path
end
def index
@users = User.where("inviter_id = ?", CurrentUser.id).paginate(params[:page])
end

View File

@@ -1,11 +1,11 @@
module Moderator
class IpAddrsController < ApplicationController
before_filter :janitor_only
def index
@search = IpAddrSearch.new(params[:search])
end
def search
end
end

View File

@@ -2,7 +2,7 @@ module Moderator
module Post
class ApprovalsController < ApplicationController
before_filter :janitor_only
def create
@post = ::Post.find(params[:post_id])
if @post.is_deleted? || @post.is_flagged? || @post.is_pending?

View File

@@ -2,7 +2,7 @@ module Moderator
module Post
class DisapprovalsController < ApplicationController
before_filter :janitor_only
def create
@post = ::Post.find(params[:post_id])
@post_disapproval = PostDisapproval.create(:post => @post, :user => CurrentUser.user)

View File

@@ -8,7 +8,7 @@ module Moderator
def confirm_delete
@post = ::Post.find(params[:id])
end
def delete
@post = ::Post.find(params[:id])
if params[:commit] == "Delete"
@@ -17,12 +17,12 @@ module Moderator
end
redirect_to(post_path(@post))
end
def undelete
@post = ::Post.find(params[:id])
@post.undelete!
end
def annihilate
@post = ::Post.find(params[:id])
@post.annihilate!

View File

@@ -3,7 +3,7 @@ module Moderator
class QueuesController < ApplicationController
respond_to :html, :json
before_filter :janitor_only
def show
::Post.without_timeout do
@posts = ::Post.order("posts.id asc").pending_or_flagged.available_for_moderation(params[:hidden]).search(:tag_match => "#{params[:query]} status:any").paginate(params[:page], :limit => 100)

View File

@@ -2,15 +2,15 @@ module Moderator
class TagsController < ApplicationController
before_filter :moderator_only
rescue_from TagBatchChange::Error, :with => :error
def edit
end
def update
Delayed::Job.enqueue(TagBatchChange.new(params[:tag][:antecedent], params[:tag][:consequent], CurrentUser.user, CurrentUser.ip_addr))
redirect_to edit_moderator_tag_path, :notice => "Post changes queued"
end
def error
redirect_to edit_moderator_tag_path, :notice => "Error"
end