lib/sga/asset.rb in sga_paperclippolymorph-0.1.0 vs lib/sga/asset.rb in sga_paperclippolymorph-0.2.0

- old
+ new

@@ -54,10 +54,9 @@ def path File.join RAILS_ROOT, 'public', self.url_without_random end def file_md5sum - #path = File.join RAILS_ROOT, 'public', self.url_without_random IO.popen("md5sum #{path} | awk '{print $1}'"){|f| f.gets.strip} end def url_without_random format=:original self.url(format) =~ /^(.*)\?\d*$/ ? $1 : self.url(format)