diff --git a/lib/technoweenie/attachment_fu/backends/file_system_backend.rb b/lib/technoweenie/attachment_fu/backends/file_system_backend.rb index b8f4b1aa..f746ae77 100644 --- a/lib/technoweenie/attachment_fu/backends/file_system_backend.rb +++ b/lib/technoweenie/attachment_fu/backends/file_system_backend.rb @@ -34,10 +34,10 @@ def attachment_path_id # by default paritions files into directories e.g. 0000/0001/image.jpg # to turn this off set :partition => false def partitioned_path(*args) - if respond_to?(:attachment_options) && attachment_options[:partition] == false - args - else - ("%08d" % attachment_path_id).scan(/..../) + args + if respond_to?(:attachment_options) && attachment_options[:partition] == false + args + else + ("%08d" % attachment_path_id).scan(/..../) + args end end