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

@@ -1,6 +1,6 @@
class FavoritesController < ApplicationController
before_filter :member_only
def index
if params[:tags]
redirect_to(posts_path(:tags => params[:tags]))
@@ -8,7 +8,7 @@ class FavoritesController < ApplicationController
@favorite_set = PostSets::Favorite.new(CurrentUser.user, params[:page])
end
end
def create
if CurrentUser.favorite_limit.nil? || CurrentUser.favorite_count < CurrentUser.favorite_limit
@post = Post.find(params[:post_id])
@@ -17,7 +17,7 @@ class FavoritesController < ApplicationController
@error_msg = "You can only keep up to #{CurrentUser.favorite_limit} favorites. Upgrade your account to save more."
end
end
def destroy
@post = Post.find(params[:id])
@post.remove_favorite!(CurrentUser.user)