Browse files

clearer offset for percentage strategy helper

  • Loading branch information...
1 parent 5bce9bb commit 75ff474eec2fc4e8b7013aa0d9f4357cd3afff93 Justin Jones committed Dec 1, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 app/helpers/trebuchet_helper.rb
View
3 app/helpers/trebuchet_helper.rb
@@ -32,7 +32,8 @@ def users_strategy(strategy)
end
def percent_strategy(strategy)
- percent, offset = strategy.percentage, strategy.offset
+ percent = strategy.percentage,
+ offset = strategy.offset
low_id = (0 + offset).to_s.rjust(2, '0')
high_id = (percent + offset - 1).to_s.rjust(2, '0')
str = "#{percent}%"

0 comments on commit 75ff474

Please sign in to comment.