Kill trailing whitespace in ruby files
This commit is contained in:
@@ -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?
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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!
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user