diff --git a/Dockerfile b/Dockerfile index d893225..265336b 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 a51659e..e330e74 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 0000000..ffdd69a --- /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)