From 2190e1cc6f4843c79abb2e231f68be92e2204422 Mon Sep 17 00:00:00 2001 From: Yazan Date: Thu, 27 May 2010 16:24:57 -0400 Subject: [PATCH] added temp_path= method --- lib/technoweenie/attachment_fu.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/technoweenie/attachment_fu.rb b/lib/technoweenie/attachment_fu.rb index 92ab774f..997778aa 100644 --- a/lib/technoweenie/attachment_fu.rb +++ b/lib/technoweenie/attachment_fu.rb @@ -362,6 +362,11 @@ def temp_path p = temp_paths.first p.respond_to?(:path) ? p.path : p.to_s end + + def temp_path=(value) + temp_paths.unshift value + temp_path + end # Gets an array of the currently used temp paths. Defaults to a copy of #full_filename. def temp_paths