Permalink
Browse files

Merge branch 'master' into i18n

  • Loading branch information...
2 parents 1c50789 + 4b286ff commit 94181f1e9e9b382cc8055e50805dddf02a4b6656 Ramón Martínez Olvera committed Nov 30, 2011
@@ -24,7 +24,7 @@ def self.up
puts "Creating file: #{filename}"
@user_document = UserDocument.find(record.id)
File.open(filename, 'w') do |f|
- f.write @user_document.file
+ f.write @user_document.file.force_encoding('utf-8')
end
end
puts "Inserting document: :user_id => #{record.user_id}, :file => #{filename}"
@@ -1,3 +1,4 @@
+# encoding: utf-8
class InsertRefereedCriteria < ActiveRecord::Migration
def self.up
['Artículo', 'Carta', 'Nota de investigación', 'Otro'].each do |name|

0 comments on commit 94181f1

Please sign in to comment.