Skip to content

Commit

Permalink
Merge branch 'master' of github.com:railsdog/spree-volume-pricing
Browse files Browse the repository at this point in the history
  • Loading branch information
BDQ committed Apr 27, 2010
2 parents 231b4d5 + 3b2a996 commit bcb7157
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions volume_pricing_extension.rb
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,10 @@ def to_range
case self.count('.')
when 2
elements = self.split('..')
return Range.new(elements[0].to_i, elements[1].to_i)
return Range.new(elements[0].from(1).to_i, elements[1].to_i)
when 3
elements = self.split('...')
return Range.new(elements[0].to_i, elements[1].to_i-1)
return Range.new(elements[0].from(1).to_i, elements[1].to_i-1)
else
raise ArgumentError.new("Couldn't convert to Range: #{self}")
end
Expand Down

0 comments on commit bcb7157

Please sign in to comment.