From e5112cdd533e5da6217ba6380977046f0c4750a0 Mon Sep 17 00:00:00 2001 From: f Date: Sat, 7 Sep 2019 16:34:04 -0300 Subject: [PATCH] arreglar el deploy --- Dockerfile | 3 ++- app/models/invitadx.rb | 2 ++ mobility.patch | 11 +++++++++++ 3 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 mobility.patch diff --git a/Dockerfile b/Dockerfile index d8932255..265336bc 100644 --- a/Dockerfile +++ b/Dockerfile @@ -52,7 +52,8 @@ RUN find public/assets -type f -name "*.gz" | sed -re "s/\.gz$//" | xargs -r bro # assets ya están pre-compilados. RUN sed -re "/(uglifier|bootstrap|coffee-rails)/d" -i Gemfile RUN bundle clean - +COPY ./mobility.patch . +RUN patch -N -i mobility.patch # Contenedor final FROM sutty/monit:latest diff --git a/app/models/invitadx.rb b/app/models/invitadx.rb index a51659ec..e330e746 100644 --- a/app/models/invitadx.rb +++ b/app/models/invitadx.rb @@ -1 +1,3 @@ +# frozen_string_literal: true + class Invitadx < ApplicationRecord; end diff --git a/mobility.patch b/mobility.patch new file mode 100644 index 00000000..ffdd69a2 --- /dev/null +++ b/mobility.patch @@ -0,0 +1,11 @@ +--- /srv/http/vendor/ruby/gems/2.5.0/gems/mobility-0.8.7/lib/mobility/arel/visitor.rb.orig 2019-08-29 14:20:24.180122614 -0300 ++++ /srv/http/vendor/ruby/gems/2.5.0/gems/mobility-0.8.7/lib/mobility/arel/visitor.rb 2019-08-29 14:18:38.146723362 -0300 +@@ -14,7 +14,7 @@ + + private + +- def visit(object) ++ def visit(object, collection = nil) + super + rescue TypeError + visit_default(object)