Permalink
Browse files

namespacenuti vypisu

  • Loading branch information...
1 parent 3d281ac commit a36d25ce429d4d25e6f8376250300d57bfdbbc10 @DarkTatka DarkTatka committed Mar 8, 2012
Showing with 5 additions and 5 deletions.
  1. +5 −5 lib/paperclipdb/storage/database.rb
@@ -15,7 +15,7 @@ def override_default_options(base)
private :override_default_options
def exists?(style = default_style)
- puts("exists? #{style}")
+ puts("[paperclipdb] exists? #{style}")
return getAttachment(path(style)).nil?
end
@@ -25,7 +25,7 @@ def getAttachment(file_path)
end
def to_file style = default_style
- puts("to_file #{style}")
+ puts("[paperclipdb] to_file #{style}")
if @queued_for_write[style]
@queued_for_write[style]
elsif exists?(style)
@@ -39,9 +39,9 @@ def to_file style = default_style
end
def flush_writes
- puts("[paperclip] Writing files #{@queued_for_write.count}")
+ puts("[paperclipdb] Writing files #{@queued_for_write.count}")
@queued_for_write.each do |style, file|
- puts("[paperclip] Writing files for #{file} #{style}")
+ puts("[paperclipdb] Writing files for #{file} #{style}")
attachment = Paperclipdb::Attachment.new
attachment.base_name = File.basename(path(style))
attachment.dir_name = File.dirname(path(style))
@@ -55,7 +55,7 @@ def flush_writes
def flush_deletes
@queued_for_delete.each do |path|
- puts("[paperclip] Deleting files for #{path}")
+ puts("[paperclipdb] Deleting files for #{path}")
attachment = getAttachment(path)
if (!attachment.nil?)
attachment.destroy

0 comments on commit a36d25c

Please sign in to comment.