Small improvements.
This commit is contained in:
parent
8ac9d097a9
commit
78ace250dc
3 changed files with 9 additions and 2 deletions
|
@ -17,7 +17,10 @@ class CreateHistory < ActiveRecord::Migration
|
|||
end
|
||||
add_index :histories, [:o_id]
|
||||
add_index :histories, [:created_by_id]
|
||||
|
||||
add_index :histories, [:created_at]
|
||||
add_index :histories, [:history_object_id]
|
||||
add_index :histories, [:history_type_id]
|
||||
|
||||
create_table :history_types do |t|
|
||||
t.column :name, :string, :limit => 250, :null => false
|
||||
t.timestamps
|
||||
|
|
|
@ -1818,6 +1818,10 @@ Translation.create( :locale => 'de', :source => "Attachment", :target => "Anhang
|
|||
Translation.create( :locale => 'de', :source => "Year", :target => "Jahr", :updated_by_id => 1, :created_by_id => 1 )
|
||||
Translation.create( :locale => 'de', :source => "Month", :target => "Monat", :updated_by_id => 1, :created_by_id => 1 )
|
||||
Translation.create( :locale => 'de', :source => "Day", :target => "Tag", :updated_by_id => 1, :created_by_id => 1 )
|
||||
Translation.create( :locale => 'de', :source => "Closed", :target => "Geschlossen", :updated_by_id => 1, :created_by_id => 1 )
|
||||
Translation.create( :locale => 'de', :source => "Re-Open", :target => "Wiedereröffnet", :updated_by_id => 1, :created_by_id => 1 )
|
||||
Translation.create( :locale => 'de', :source => "Day", :target => "Tag", :updated_by_id => 1, :created_by_id => 1 )
|
||||
Translation.create( :locale => 'de', :source => "First Solution", :target => "Erstlösung", :updated_by_id => 1, :created_by_id => 1 )
|
||||
|
||||
|
||||
#Translation.create( :locale => 'de', :source => "", :target => "", :updated_by_id => 1, :created_by_id => 1 )
|
||||
|
|
|
@ -23,7 +23,7 @@ module Encode
|
|||
|
||||
rescue EncodingError => e
|
||||
puts "Bad encoding: #{string.inspect}"
|
||||
string.encode!( 'UTF-8', invalid: :replace, undef: :replace, replace: '?' )
|
||||
string = string.encode!( 'UTF-8', invalid: :replace, undef: :replace, replace: '?' )
|
||||
end
|
||||
return string
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue