From 516576e5480f3ba8956a6008a1d3709a78efcc15 Mon Sep 17 00:00:00 2001 From: Harald Eilertsen Date: Tue, 6 Aug 2019 12:02:28 +0200 Subject: Emergency fixes to make hmno run on freebsd 12. Upgrade to use Ruby 2.5.5. Use patched version of rails/activerecord/postgres-adapter that should fix compatibility with Ruby 2.5. Patch Arel inline to be compatible with Ruby 2.5. --- config/initializers/arel-workaround.rb | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 config/initializers/arel-workaround.rb (limited to 'config/initializers/arel-workaround.rb') diff --git a/config/initializers/arel-workaround.rb b/config/initializers/arel-workaround.rb new file mode 100644 index 0000000..67f99f2 --- /dev/null +++ b/config/initializers/arel-workaround.rb @@ -0,0 +1,17 @@ +# Workaround to get Arel to work with newer versions of ruby +# from: https://stackoverflow.com/a/44286212 +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 -- cgit v1.2.3