pg_rails 7.0.8.pre.alpha.60 → 7.0.8.pre.alpha.62
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/pg_engine/app/mailers/pg_engine/base_mailer.rb +4 -2
- data/pg_engine/app/models/email.rb +1 -0
- data/pg_engine/app/models/user.rb +4 -0
- data/pg_engine/config/initializers/devise.rb +1 -1
- data/pg_engine/config/locales/es.yml +5 -2
- data/pg_layout/app/views/devise/sessions/new.html.erb +1 -1
- data/pg_rails/lib/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: afcf64379ab25a58e3b1d626f71371cc63448503880d182b8ad1e1164dbccf7e
|
4
|
+
data.tar.gz: 9917f1be640ccdbabbc1d7c12ca561d5714f1b4227e3899c3c1cc96749157284
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a620ba16efe37ac2794a11676bcecb89ad101053abcb04147a246b2c3d074de03799b01d1d0ad7578855d05347f793aec52a62a6722a4e755ee161aa156a98bf
|
7
|
+
data.tar.gz: 8d63151e40a4a105137d3a097b9ec09690c159b2130620d078bc5c428895522631c5ffc732acd20b4cd32094470f2e72aca5a05050e13cfc8381207662d61c2a
|
@@ -15,12 +15,15 @@ module PgEngine
|
|
15
15
|
|
16
16
|
rescue_from StandardError do |err|
|
17
17
|
pg_warn err, :error
|
18
|
-
@email.
|
18
|
+
if @email.present?
|
19
|
+
@email.update_columns(status: :failed, status_detail: err.to_s) # rubocop:disable Rails/SkipsModelValidations
|
20
|
+
end
|
19
21
|
end
|
20
22
|
|
21
23
|
protected
|
22
24
|
|
23
25
|
def mail(*args)
|
26
|
+
@footer_href = root_url(m: @email.hashid)
|
24
27
|
super(*args).tap do |message|
|
25
28
|
# message.mailgun_options = {
|
26
29
|
# 'tag' => email.tags,
|
@@ -35,4 +38,3 @@ end
|
|
35
38
|
# # TODO: testear
|
36
39
|
# si from está vacío
|
37
40
|
# si body está vacío
|
38
|
-
# si se lanza PgEngine::BaseMailer::MailNotDelivered
|
@@ -164,7 +164,7 @@ Devise.setup do |config|
|
|
164
164
|
|
165
165
|
# ==> Configuration for :rememberable
|
166
166
|
# The time the user will be remembered without asking for credentials again.
|
167
|
-
config.remember_for =
|
167
|
+
config.remember_for = 40.days
|
168
168
|
|
169
169
|
# Invalidates all the remember me tokens when the user signs out.
|
170
170
|
config.expire_all_remember_me_on_sign_out = true
|
@@ -10,7 +10,7 @@
|
|
10
10
|
<%= f.input :password,
|
11
11
|
required: false,
|
12
12
|
input_html: { autocomplete: "current-password" } %>
|
13
|
-
|
13
|
+
<%= f.input :remember_me, as: :hidden if devise_mapping.rememberable? %>
|
14
14
|
</div>
|
15
15
|
|
16
16
|
<div class="form-actions">
|
data/pg_rails/lib/version.rb
CHANGED