remove trailing white-space from app/models/attachment.rb
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11267 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
8f2fdaccd2
commit
3d7819ed82
|
@ -263,7 +263,7 @@ class Attachment < ActiveRecord::Base
|
||||||
Attachment.where("created_on < ? AND (container_type IS NULL OR container_type = '')", Time.now - age).destroy_all
|
Attachment.where("created_on < ? AND (container_type IS NULL OR container_type = '')", Time.now - age).destroy_all
|
||||||
end
|
end
|
||||||
|
|
||||||
# Moves an existing attachment to its target directory
|
# Moves an existing attachment to its target directory
|
||||||
def move_to_target_directory!
|
def move_to_target_directory!
|
||||||
if !new_record? & readable?
|
if !new_record? & readable?
|
||||||
src = diskfile
|
src = diskfile
|
||||||
|
|
Loading…
Reference in New Issue