Skip to content

Instantly share code, notes, and snippets.

View whywaita's full-sized avatar

Tachibana waita whywaita

View GitHub Profile
@whywaita
whywaita / ruby_191_hacks.rb
Last active August 29, 2015 14:27 — forked from andre/ruby_191_hacks.rb
for redmine
# Drop this file in config/initializers to run your Rails project on Ruby 1.9.
# This is three separate monkey patches -- see comments in code below for the source of each.
# None of them are original to me, I just put them in one file for easily dropping into my Rails projects.
# Also see original sources for pros and cons of each patch. Most notably, the MySQL patch just assumes
# that everything in your database is stored as UTF-8. This was true for me, and there's a good chance it's
# true for you too, in which case this is a quick, practical solution to get you up and running on Ruby 1.9.
#
# Andre Lewis 1/2010
# encoding: utf-8