lib/paperclip/storage/database.rb in paperclip_database-2.2.1 vs lib/paperclip/storage/database.rb in paperclip_database-2.2.2
- old
+ new
@@ -160,10 +160,10 @@
db_result = instance.send("#{@paperclip_files}").send(:file_for, style.to_s)
raise RuntimeError, "More than one result for #{style}" if db_result.size > 1
db_result.first
end
- def file_contents(style)
+ def file_contents(style = default_style)
file_for(style).file_contents
end
def flush_writes
ActiveRecord::Base.logger.info("[paperclip] Writing files for #{name}")