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