No need to create a range object

This commit is contained in:
Santiago Pastorino 2011-09-22 14:14:24 -03:00
parent 855184c468
commit 667ef57de6
1 changed files with 3 additions and 3 deletions

View File

@ -133,7 +133,7 @@ module ActiveSupport
# Make sure file name doesn't exceed file system limits.
begin
fname_paths << fname[0...FILENAME_MAX_SIZE]
fname_paths << fname[0, FILENAME_MAX_SIZE]
fname = fname[FILENAME_MAX_SIZE..-1]
end until fname.blank?