themactep.com

A home of miscellaneous projects by Paul Philippov.

Notes

How to make Rails3 app to run on Ruby 2.5

$ sudo gem install bundler:1.17.3
$ bundle _1.17.3_ install
$ sudo sed -i '12 s/LONG_PASSWORD | //' \
    /var/lib/gems/2.5.0/gems/mysql2-0.3.21/lib/mysql2/client.rb
$ echo 'module Arel
  module Visitors
    class DepthFirst < Arel::Visitors::Visitor
      alias :visit_Integer :terminal
    end

    class Dot < Arel::Visitors::Visitor
      alias :visit_Integer :visit_String
    end

    class ToSql < Arel::Visitors::Visitor
      alias :visit_Integer :literal
    end
  end
end
' > config/initializers/arel.rb