Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Index: lib/technoweenie/attachment_fu/backends/db_file_backend.rb
- ===================================================================
- --- lib/technoweenie/attachment_fu/backends/db_file_backend.rb (revision 6256)
- +++ lib/technoweenie/attachment_fu/backends/db_file_backend.rb (revision 6257)
- @@ -17,6 +17,11 @@
- def current_data
- db_file.data
- end
- +
- + # Fix for keeping a db file
- + def temp_paths
- + @temp_paths ||= (new_record? || !current_data) ? [] : [create_temp_file]
- + end
- protected
- # Destroys the file. Called in the after_destroy callback
Add Comment
Please, Sign In to add comment