Bump gems

- apipie-rails
- brakeman
- byebug
- rubocop
- turbolinks
- skylight
- chartkick
- devise
- dotenv-rails
- uglifier
- web-console
- font-awesome-rails
- pg
- deep_cloneable
- delayed_job_active_record
This commit is contained in:
gregoirenovel 2018-04-11 09:38:58 +02:00
parent 6d8497388b
commit 09e0144f30
3 changed files with 30 additions and 27 deletions

View file

@ -16,7 +16,7 @@ class FindDubiousProceduresJob < ApplicationJob
# https://www.postgresql.org/docs/current/static/functions-matching.html#FUNCTIONS-POSIX-REGEXP
forbidden_tdcs = TypeDeChamp
.joins(:procedure)
.where("unaccent(types_de_champ.libelle) ~* unaccent('#{forbidden_regexp}')")
.where("unaccent(types_de_champ.libelle) ~* unaccent(?)", forbidden_regexp)
.where(type_champ: %w(text textarea))
.where(procedures: { archived_at: nil, whitelisted_at: nil })