##// END OF EJS Templates
Ruby1.9: set Encoding.default_external on only Rails2 (#4050, #4796)...
Toshi MARUYAMA -
r8593:84e2822e2746
parent child
Show More
@@ -7,7 +7,7
7 7 # Specifies gem version of Rails to use when vendor/rails is not present
8 8 RAILS_GEM_VERSION = '2.3.14' unless defined? RAILS_GEM_VERSION
9 9
10 if RUBY_VERSION >= '1.9'
10 if RUBY_VERSION >= '1.9' && defined?(Rails) && Rails::VERSION::MAJOR < 3
11 11 Encoding.default_external = 'UTF-8'
12 12 end
13 13
General Comments 0
You need to be logged in to leave comments. Login now