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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8f7075782dd2fd7007df2d629c155c7a331216ae3cf2dc7ba959e09662b784fb
|
4
|
+
data.tar.gz: 2f08469101760d9c8be4d7b3fa0834296fdf2190c9e24b03f45f238e4d426406
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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:
|
data/pg_rails/lib/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2024-07-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|