mirror of https://github.com/rails/rails
No need to create a range object
This commit is contained in:
parent
855184c468
commit
667ef57de6
|
@ -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?
|
||||
|
||||
|
|
Loading…
Reference in New Issue