public
Description: Paperclip File Management Plugin
Homepage: http://www.thoughtbot.com/projects/paperclip
Clone URL: git://github.com/thoughtbot/paperclip.git

Comments for thoughtbot's paperclip   feed

cpjolicoeur commented on thoughtbot/paperclip 4 days ago
Comment in 7c598fb:

thanks for this update

JamesBrooks commented on thoughtbot/paperclip 2 months ago
Comment in 3b8ed8d:

Pull request sent w/ fix

JamesBrooks commented on thoughtbot/paperclip 2 months ago
Comment on lib/paperclip/attachment.rb in 3b8ed8d:

Adding of convert_options has broken paperclip unless :convert_options => {} is added to the has_attached_file options. Fix by adding || {} to the end of line 37 in lib/paperclip/attachment.rb

thoughtbot commented on thoughtbot/paperclip 4 months ago
Comment in aff3396:

Oh, geez, I must be tired. Thanks for the heads up.

kjell commented on thoughtbot/paperclip 4 months ago
Comment in aff3396:

If I could delete those I would, but github fails my textile test.

kjell commented on thoughtbot/paperclip 4 months ago
Comment in aff3396:

Aie, an old version of textile.
<pre><code>
diff -git a/tasks/paperclip_tasks.rake b/tasks/paperclip_tasks.rake
index 580d775..fcb9088 100644
—a/tasks/paperclip_tasks.rake
++ b/tasks/paperclip_tasks.rake
@ -49,7 +49,7 @ namespace :paperclip do
task :metadata => :environment do
for_all_attachments do |instance, name|
if file = instance.send(name).to_file
- instance.send("#{name}_file_name=", instance.send("#{name}_file_name").strip
instance.send("#{name}_file_name=", instance.send("#{name}_file_name").strip)
instance.send("#{name}_content_type=", file.content_type.strip)
instance.send("#{name}_file_size=", file.size) if instance.respond_to?("#{name}_file_size")
instance.save(false)
</code></pre>

kjell commented on thoughtbot/paperclip 4 months ago
Comment in aff3396:

I think you forgot a parenthesis here.
bc.. diff -git a/tasks/paperclip_tasks.rake b/tasks/paperclip_tasks.rake
index 580d775..fcb9088 100644
—a/tasks/paperclip_tasks.rake
++ b/tasks/paperclip_tasks.rake
@ -49,7 +49,7 @ namespace :paperclip do
task :metadata => :environment do
for_all_attachments do |instance, name|
if file = instance.send(name).to_file
- instance.send("#{name}_file_name=", instance.send("#{name}_file_name").strip
instance.send("#{name}_file_name=", instance.send("#{name}_file_name").strip)
instance.send("#{name}_content_type=", file.content_type.strip)
instance.send("#{name}_file_size=", file.size) if instance.respond_to?("#{name}_file_size")
instance.save(false)

thoughtbot commented on thoughtbot/paperclip 6 months ago
Comment in 11086ba:

It wasn’t so much infeasible as it was not terribly useful. Cool, but not useful from the standpoint of assigning directly from the hash like just another attribute.

mnutt commented on thoughtbot/paperclip 6 months ago
Comment in 11086ba:

Is there a reason that assign-by-URI support was removed? Was it infeasible, or just an issue with the implementation?