pg_rails 7.0.8.pre.alpha.109 → 7.0.8.pre.alpha.110

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0ea0a25a34ed115022c43283c50cd8678d9ebde034abbfcd65f149fa486d2004
4
- data.tar.gz: 6ad0a841b8d2b3c73513c8890a7f2642598c78341ef1b79567a9e049b5cd8882
3
+ metadata.gz: 8f7075782dd2fd7007df2d629c155c7a331216ae3cf2dc7ba959e09662b784fb
4
+ data.tar.gz: 2f08469101760d9c8be4d7b3fa0834296fdf2190c9e24b03f45f238e4d426406
5
5
  SHA512:
6
- metadata.gz: 7b24cbce39c6cce5ec0ed5d21dc45c61de0cb6986c40bcc04c5495ae2a5fa7cb12934a3609eec80d0008b860ed69a67c6f45df3969771907da4381258a26ac6f
7
- data.tar.gz: e59deaa85466ff3e49dae7effe311fe77025b9bbdfc97c9667ce97f3ff48efdd20e6428d4e830993e895f0633b0144d6c6a73505a072f92f297972a2cd898b15
6
+ metadata.gz: 89b357feaa5d021f0e77e64ae506cbeb807b494bef131e93eab96c63684e50ac4d24d1e9f14858c2e3eee5295fe708b5b5cc65ad74a079e71240eb01adc68acd
7
+ data.tar.gz: c1d6cefd006afb17a0eace518368a007d1c5a26451f1f7bfe929fdfac3d04414babc95b0f53411d2099bd6bd7f9be90e0d482742f38d962d9a3c50f1fdc30fcc
@@ -3,10 +3,15 @@ module PgEngine
3
3
  # default delivery_method: :smtp
4
4
 
5
5
  def notification
6
- recipient = params[:notification].recipient
7
- @html = params[:message].html_safe
8
- @text = params[:message_text]
9
- mail(to: recipient.email, subject: params[:subject])
6
+ @recipient = params[:notification].recipient
7
+ @html = replace_user(params[:message]).html_safe
8
+ @text = replace_user(params[:message_text])
9
+ mail(to: @recipient.email, subject: params[:subject])
10
+ end
11
+
12
+ def replace_user(input)
13
+ # reemplaza todas las ocurrencias de: %{user}
14
+ format(input, user: @recipient.nombre)
10
15
  end
11
16
  end
12
17
  end
@@ -11,7 +11,7 @@ es:
11
11
  confirmed_at: Fecha de confirmación
12
12
  actualizado_por: Actualizado por
13
13
  creado_por: Creado por
14
- accept_terms: Acepto los <a href="/terminos_y_condiciones" target="_blank">Términos y condiciones</a>
14
+ accept_terms: Acepto los <a href="/terminos_y_condiciones" target="_blank">Términos y condiciones</a> y la <a href="/privacidad" target="_blank">Política de privacidad</a>
15
15
  enumerize:
16
16
  email:
17
17
  status:
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PgRails
4
- VERSION = '7.0.8-alpha.109'
4
+ VERSION = '7.0.8-alpha.110'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pg_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.0.8.pre.alpha.109
4
+ version: 7.0.8.pre.alpha.110
5
5
  platform: ruby
6
6
  authors:
7
7
  - Martín Rosso
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-07-02 00:00:00.000000000 Z
11
+ date: 2024-07-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails