mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-20 17:20:12 +01:00
do not depend on ruby 1.9.x for production use
This commit is contained in:
parent
aa518e252c
commit
b20f09725c
1 changed files with 4 additions and 2 deletions
|
|
@ -1,8 +1,10 @@
|
||||||
# Load the rails application
|
# Load the rails application
|
||||||
require File.expand_path('../application', __FILE__)
|
require File.expand_path('../application', __FILE__)
|
||||||
|
|
||||||
|
if RUBY_VERSION.to_f >= 1.9
|
||||||
Encoding.default_external = Encoding::UTF_8
|
Encoding.default_external = Encoding::UTF_8
|
||||||
Encoding.default_internal = Encoding::UTF_8
|
Encoding.default_internal = Encoding::UTF_8
|
||||||
|
end
|
||||||
|
|
||||||
# Initialize the rails application
|
# Initialize the rails application
|
||||||
Tracksapp::Application.initialize!
|
Tracksapp::Application.initialize!
|
||||||
Loading…
Add table
Add a link
Reference in a new issue