<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Randomize Filename in&#160;Paperclip</title>
	<atom:link href="http://almosteffortless.com/2009/03/22/randomize-filename-in-paperclip/feed/" rel="self" type="application/rss+xml" />
	<link>http://almosteffortless.com/2009/03/22/randomize-filename-in-paperclip/</link>
	<description></description>
	<lastBuildDate>Wed, 10 Mar 2010 01:15:13 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Sergiy</title>
		<link>http://almosteffortless.com/2009/03/22/randomize-filename-in-paperclip/comment-page-1/#comment-68999</link>
		<dc:creator>Sergiy</dc:creator>
		<pubDate>Tue, 15 Sep 2009 14:56:31 +0000</pubDate>
		<guid isPermaLink="false">http://almosteffortless.com/?p=1247#comment-68999</guid>
		<description>I patched your code and found this more useful in my project:

  def randomize_file_name
    return if image_file_name.nil?
    extension = File.extname(image_file_name).downcase
    if image_file_name_changed?
      self.image.instance_write(:file_name, &quot;#{ActiveSupport::SecureRandom.hex(16)}#{extension}&quot;)
    end
  end</description>
		<content:encoded><![CDATA[<p>I patched your code and found this more useful in my project:</p>
<p>  def randomize_file_name<br />
    return if image_file_name.nil?<br />
    extension = File.extname(image_file_name).downcase<br />
    if image_file_name_changed?<br />
      self.image.instance_write(:file_name, &#8220;#{ActiveSupport::SecureRandom.hex(16)}#{extension}&#8221;)<br />
    end<br />
  end</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Zoran</title>
		<link>http://almosteffortless.com/2009/03/22/randomize-filename-in-paperclip/comment-page-1/#comment-68623</link>
		<dc:creator>Zoran</dc:creator>
		<pubDate>Sun, 05 Apr 2009 21:30:44 +0000</pubDate>
		<guid isPermaLink="false">http://almosteffortless.com/?p=1247#comment-68623</guid>
		<description>Thanks for sharing! This is indeed useful.</description>
		<content:encoded><![CDATA[<p>Thanks for sharing! This is indeed useful.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
