Skip to content
Snippets Groups Projects
Unverified Commit 8f43898a authored by luap42's avatar luap42 Committed by GitHub
Browse files

I love you too, Rubocop

parent e4fdd080
Branches
Tags
No related merge requests found
...@@ -14,8 +14,8 @@ class VotesController < ApplicationController ...@@ -14,8 +14,8 @@ class VotesController < ApplicationController
max_votes_per_day = SiteSetting['FreeVotes'] + (@current_user.reputation - SiteSetting['NewUserInitialRep']) max_votes_per_day = SiteSetting['FreeVotes'] + (@current_user.reputation - SiteSetting['NewUserInitialRep'])
if recent_votes >= max_votes_per_day if recent_votes >= max_votes_per_day
vote_limit_msg = 'You have used your daily vote limit of ' + recent_votes.to_s + 'votes. Gain more reputation or' \ vote_limit_msg = 'You have used your daily vote limit of ' + recent_votes.to_s + 'votes. Gain more reputation' \
' come back tomorrow to continue voting.' ' or come back tomorrow to continue voting.'
if max_votes_per_day <= 0 if max_votes_per_day <= 0
vote_limit_msg = 'You need to gain some reputation on this site before you can start voting.' vote_limit_msg = 'You need to gain some reputation on this site before you can start voting.'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment