##// END OF EJS Templates
remove trailing white-space from app/models/attachment.rb...
Toshi MARUYAMA -
r11037:3d7819ed822e
parent child
Show More
@@ -263,7 +263,7 class Attachment < ActiveRecord::Base
263 Attachment.where("created_on < ? AND (container_type IS NULL OR container_type = '')", Time.now - age).destroy_all
263 Attachment.where("created_on < ? AND (container_type IS NULL OR container_type = '')", Time.now - age).destroy_all
264 end
264 end
265
265
266 # Moves an existing attachment to its target directory
266 # Moves an existing attachment to its target directory
267 def move_to_target_directory!
267 def move_to_target_directory!
268 if !new_record? & readable?
268 if !new_record? & readable?
269 src = diskfile
269 src = diskfile
General Comments 0
You need to be logged in to leave comments. Login now