Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't use 'for' loops. Use Enumerable.each instead. #120

Open
alvarofernandoms opened this issue Nov 25, 2014 · 0 comments
Open

Don't use 'for' loops. Use Enumerable.each instead. #120

alvarofernandoms opened this issue Nov 25, 2014 · 0 comments

Comments

@alvarofernandoms
Copy link
Member

app/controllers/rankings_controller.rb:26

for i in 10..qtdThemes
    qtd = qtd + @themes[i].propositions.count
    return qtd
end
@alvarofernandoms alvarofernandoms changed the title Não usar operador 'for'. Uso o Enumerable.each no lugar. Don't use 'for' loops. Use Enumerable.each instead. Mar 24, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant