pg_rails 7.6.21.pre.9 → 7.6.21.pre.11
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/models/account.rb +1 -1
- data/pg_engine/app/models/current.rb +4 -0
- data/pg_engine/app/models/user.rb +4 -0
- data/pg_engine/app/policies/pg_engine/base_policy.rb +1 -1
- data/pg_engine/app/views/users/accounts/_form.html.slim +1 -1
- data/pg_engine/config/initializers/rollbar.rb +3 -1
- data/pg_engine/config/locales/es.yml +1 -1
- data/pg_engine/lib/pg_engine/configuracion.rb +6 -0
- data/pg_layout/app/javascript/application.js +12 -0
- data/pg_layout/app/views/devise/registrations/edit.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: f442d786ae4cf36b38c87e72307bb1fe1dfd4c77fb2e697566adfb1d48bbb1b6
|
4
|
+
data.tar.gz: d1028638b9acd8817adbc33a0680f270c46b96c1b9f96d66d6ac964d46b96eaf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 184210806bdd1ed1c9c4e4e6f2e4d481751cae4375f1cf5df01b74b66ff66bc685e8cb01ad5405ad63e6e147c9eebf68a5795851040612ee1c830d4f9acc2261
|
7
|
+
data.tar.gz: 44544f1fd6549dc40ca21b0666a500538567320bbb6170e29ffc0a1773ae31e8c2c5a9faf869137465dce6c12f29a8a42d765d4d00dd3cf9e34f4f852f2f9821
|
@@ -37,7 +37,7 @@ class Account < ApplicationRecord
|
|
37
37
|
has_many :audits, dependent: :nullify, class_name: 'Audited::Audit'
|
38
38
|
|
39
39
|
has_one_attached :logo do |attachable|
|
40
|
-
attachable.variant :thumb,
|
40
|
+
attachable.variant :thumb, resize_to_fill: [80, 80]
|
41
41
|
end
|
42
42
|
|
43
43
|
ransacker :search do |parent|
|
@@ -87,7 +87,9 @@ Rollbar.configure do |config|
|
|
87
87
|
[]
|
88
88
|
end
|
89
89
|
end
|
90
|
-
|
90
|
+
to_test = item[:level].to_sym
|
91
|
+
to_test = :warn if to_test == :warning
|
92
|
+
acceptable_levels.include?(to_test) ? 'gogoogogooo' : 'ignored'
|
91
93
|
end
|
92
94
|
end
|
93
95
|
end
|
@@ -100,7 +100,7 @@ es:
|
|
100
100
|
sign_up: Crear una cuenta
|
101
101
|
invitations:
|
102
102
|
send_instructions: "Se envió una invitación a %{email}"
|
103
|
-
invitation_token_invalid: "
|
103
|
+
invitation_token_invalid: "La invitación expiró :("
|
104
104
|
updated: ""
|
105
105
|
updated_not_active: ""
|
106
106
|
no_invitations_remaining: "No quedan invitaciones"
|
@@ -31,6 +31,12 @@ module PgEngine
|
|
31
31
|
"#{key}__export": base + 80,
|
32
32
|
"#{key}__destroy": base + 100
|
33
33
|
)
|
34
|
+
|
35
|
+
return unless defined? UserAccount
|
36
|
+
|
37
|
+
UserAccount.class_eval do
|
38
|
+
enumerize :profiles, in: PgEngine.configuracion.user_profiles, multiple: true
|
39
|
+
end
|
34
40
|
end
|
35
41
|
|
36
42
|
def profile_groups_options
|
@@ -5,6 +5,7 @@ import './elements'
|
|
5
5
|
import { flashMessage } from './utils/utils'
|
6
6
|
|
7
7
|
import { Turbo } from '@hotwired/turbo-rails'
|
8
|
+
import { Rollbar } from 'rollbar'
|
8
9
|
|
9
10
|
import Trix from 'trix'
|
10
11
|
|
@@ -74,6 +75,17 @@ document.addEventListener('turbo:before-fetch-request', (ev) => {
|
|
74
75
|
ev.detail.fetchOptions.headers.Accept = 'text/html, application/xhtml+xml'
|
75
76
|
}
|
76
77
|
|
78
|
+
const linksToCurrentTid = ev.detail.url.pathname.match('/u/t/current')
|
79
|
+
|
80
|
+
if (linksToCurrentTid) {
|
81
|
+
if (document.querySelector('#tid') && document.querySelector('#tid').dataset.tid) {
|
82
|
+
const tid = document.querySelector('#tid').dataset.tid
|
83
|
+
ev.detail.url.pathname = ev.detail.url.pathname.replace('/u/t/current', '/u/t/' + tid)
|
84
|
+
} else {
|
85
|
+
Rollbar.error('No hay TID')
|
86
|
+
}
|
87
|
+
}
|
88
|
+
|
77
89
|
if (document.querySelector('.modal.show')) {
|
78
90
|
ev.detail.fetchOptions.headers['Modal-Opened'] = true
|
79
91
|
}
|
@@ -5,7 +5,7 @@
|
|
5
5
|
<%= f.input :email, required: true, autofocus: true %>
|
6
6
|
<%= f.input :nombre, required: true %>
|
7
7
|
<%= f.input :apellido, required: true %>
|
8
|
-
<%= f.input :avatar %>
|
8
|
+
<%= f.input :avatar, hint: 'Es recomendable que la imagen sea cuadrada' %>
|
9
9
|
|
10
10
|
<% if devise_mapping.confirmable? && resource.pending_reconfirmation? %>
|
11
11
|
<p><%= t(".currently_waiting_confirmation_for_email", email: resource.unconfirmed_email) %></p>
|
data/pg_rails/lib/version.rb
CHANGED