Posted by & filed under Uncategorized.

Social Stream 0.12 comes with a new version of the document’s repository, social_stream-documents 0.4. A little fix is required for your already stored documents in production. Just run this two lines and you are done!

rails r 'Dir["#{ Rails.root }/documents/**/original.*"].each{ |f| f =~ /(.*)\.\w+$/; FileUtils.mv f, $1 }' RAILS_ENV=production

rake paperclip:refresh:thumbnails CLASS=Document RAILS_ENV=production

/// Leave a Reply

  • (will not be published)