pg_rails 7.6.16 → 7.6.18
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/pg_associable/app/javascript/modal_controller.js +17 -1
- data/pg_engine/app/assets/stylesheets/pg_rails_b5.scss +8 -1
- data/pg_engine/app/components/inline_edit/inline_show_component.html.slim +2 -1
- data/pg_engine/app/components/search_bar_toggler_component.html.slim +5 -3
- data/pg_engine/app/controllers/admin/accounts_controller.rb +0 -4
- data/pg_engine/app/controllers/admin/email_logs_controller.rb +0 -4
- data/pg_engine/app/controllers/admin/emails_controller.rb +0 -4
- data/pg_engine/app/controllers/admin/simple_user_notifiers_controller.rb +8 -9
- data/pg_engine/app/controllers/admin/user_accounts_controller.rb +0 -4
- data/pg_engine/app/controllers/admin/users_controller.rb +0 -4
- data/pg_engine/app/controllers/concerns/pg_engine/resource.rb +121 -41
- data/pg_engine/app/controllers/public/mensaje_contactos_controller.rb +0 -4
- data/pg_engine/app/controllers/users/accounts_controller.rb +0 -4
- data/pg_engine/app/decorators/pg_engine/base_record_decorator.rb +39 -13
- data/pg_engine/app/helpers/pg_engine/index_helper.rb +17 -3
- data/pg_engine/app/helpers/pg_engine/route_helper.rb +4 -0
- data/pg_engine/app/lib/pg_engine/filtros_builder.rb +7 -9
- data/pg_engine/app/models/account.rb +2 -0
- data/pg_engine/app/models/concerns/pg_engine/naming.rb +55 -0
- data/pg_engine/app/models/pg_engine/base_record.rb +2 -46
- data/pg_engine/app/models/user.rb +1 -1
- data/pg_engine/app/notifiers/simple_user_notifier.rb +4 -0
- data/pg_engine/app/policies/account_policy.rb +9 -9
- data/pg_engine/app/policies/pg_engine/base_policy.rb +15 -3
- data/pg_engine/app/views/admin/accounts/show.html.slim +0 -7
- data/pg_engine/app/views/admin/email_logs/show.html.slim +0 -7
- data/pg_engine/app/views/admin/emails/show.html.slim +0 -7
- data/pg_engine/app/views/admin/simple_user_notifiers/_form.html.slim +1 -1
- data/pg_engine/app/views/admin/simple_user_notifiers/show.html.slim +0 -5
- data/pg_engine/app/views/admin/user_accounts/show.html.slim +0 -7
- data/pg_engine/app/views/admin/users/show.html.slim +1 -5
- data/pg_engine/app/views/pg_engine/base/index.html.slim +39 -14
- data/pg_engine/config/locales/es.rb +42 -0
- data/pg_engine/config/locales/es.yml +1 -6
- data/pg_engine/lib/pg_engine/engine.rb +4 -0
- data/pg_engine/lib/pg_engine/route_helpers.rb +5 -0
- data/pg_engine/spec/controllers/admin/accounts_controller_spec.rb +4 -9
- data/pg_engine/spec/controllers/admin/email_logs_controller_spec.rb +4 -4
- data/pg_engine/spec/controllers/admin/emails_controller_spec.rb +4 -4
- data/pg_engine/spec/controllers/admin/user_accounts_controller_spec.rb +4 -4
- data/pg_engine/spec/controllers/admin/users_controller_spec.rb +4 -9
- data/pg_engine/spec/models/pg_engine/base_record_spec.rb +12 -0
- data/pg_engine/spec/requests/admin/eventos_spec.rb +9 -15
- data/pg_engine/spec/requests/resource_spec.rb +84 -0
- data/pg_engine/spec/requests/users/switcher_spec.rb +2 -2
- data/pg_engine/spec/system/breadcrumbs_spec.rb +9 -21
- data/pg_engine/spec/system/destroy_spec.rb +3 -3
- data/pg_engine/spec/system/login_spec.rb +1 -1
- data/pg_engine/spec/system/modal_windows_spec.rb +5 -5
- data/pg_engine/spec/system/tenants_spec.rb +2 -2
- data/pg_layout/app/javascript/application.js +4 -2
- data/pg_layout/app/javascript/controllers/embedded_frame_controller.js +4 -0
- data/pg_layout/app/views/layouts/pg_layout/base.html.slim +1 -0
- data/pg_layout/app/views/layouts/pg_layout/show.html.slim +10 -0
- data/pg_rails/lib/version.rb +1 -1
- data/pg_scaffold/lib/generators/pg_rspec/scaffold/templates/controller_spec.rb +4 -11
- data/pg_scaffold/lib/generators/pg_scaffold/templates/controller.rb +1 -5
- data/pg_scaffold/lib/generators/pg_slim/templates/show.html.slim +0 -7
- metadata +6 -3
- data/pg_engine/app/components/actions_component.rb +0 -14
@@ -12,4 +12,16 @@ describe PgEngine::BaseRecord do
|
|
12
12
|
expect(obj).to eq described_class.human_attribute_name('bla')
|
13
13
|
end
|
14
14
|
end
|
15
|
+
|
16
|
+
describe '#default_modal' do
|
17
|
+
it 'the values are independent from each class' do
|
18
|
+
model_class = Class.new(described_class)
|
19
|
+
another_model_class = Class.new(described_class)
|
20
|
+
model_class.default_modal = true
|
21
|
+
another_model_class.default_modal = false
|
22
|
+
expect(model_class.default_modal).to be true
|
23
|
+
expect(another_model_class.default_modal).to be false
|
24
|
+
expect(described_class.default_modal).to be_nil
|
25
|
+
end
|
26
|
+
end
|
15
27
|
end
|
@@ -16,28 +16,23 @@ describe 'Eventos' do
|
|
16
16
|
end
|
17
17
|
|
18
18
|
it 'renders the event index' do
|
19
|
-
get '/a/
|
19
|
+
get '/a/simple_user_notifiers'
|
20
20
|
|
21
|
-
expect(response.body).to include '
|
21
|
+
expect(response.body).to include 'Crear simple user notifier'
|
22
22
|
end
|
23
23
|
|
24
24
|
describe 'posting events' do
|
25
25
|
subject do
|
26
|
-
get '/a/
|
26
|
+
get '/a/simple_user_notifiers/new'
|
27
27
|
expect(response.body).to include 'Tooltip'
|
28
|
-
post '/a/
|
29
|
-
|
30
|
-
type:,
|
28
|
+
post '/a/simple_user_notifiers', params: {
|
29
|
+
simple_user_notifier: {
|
31
30
|
message: 'hola',
|
32
|
-
message_text:,
|
33
|
-
subject: asunto,
|
34
31
|
user_ids:,
|
35
|
-
record_type: 'User',
|
36
|
-
record_id:,
|
37
32
|
target:
|
38
33
|
}
|
39
34
|
}
|
40
|
-
get "/a/eventos/new?event_id=#{Noticed::Event.last.id}"
|
35
|
+
# get "/a/eventos/new?event_id=#{Noticed::Event.last.id}"
|
41
36
|
end
|
42
37
|
|
43
38
|
let(:record_id) { nil }
|
@@ -83,10 +78,9 @@ describe 'Eventos' do
|
|
83
78
|
|
84
79
|
context 'cuando hay error' do
|
85
80
|
subject do
|
86
|
-
post '/a/
|
87
|
-
|
88
|
-
|
89
|
-
message: 'hola',
|
81
|
+
post '/a/simple_user_notifiers', params: {
|
82
|
+
simple_user_notifier: {
|
83
|
+
message: nil,
|
90
84
|
target:
|
91
85
|
}
|
92
86
|
}
|
@@ -0,0 +1,84 @@
|
|
1
|
+
require 'rails_helper'
|
2
|
+
|
3
|
+
describe 'Resources' do
|
4
|
+
let(:user) { create :user }
|
5
|
+
let(:cosa) { create :cosa }
|
6
|
+
|
7
|
+
before do
|
8
|
+
sign_in user
|
9
|
+
end
|
10
|
+
|
11
|
+
describe 'action links' do
|
12
|
+
it 'shows the archive link' do
|
13
|
+
get '/u/cosas/' + cosa.to_param
|
14
|
+
expect(response).to have_http_status(:ok)
|
15
|
+
regex = %r{<a data-turbo-method="post" .* href="/u/cosas/[\d]+/archive">}
|
16
|
+
expect(response.body).to match regex
|
17
|
+
end
|
18
|
+
|
19
|
+
it 'shows the unarchive link' do
|
20
|
+
cosa.update(discarded_at: Time.current)
|
21
|
+
get '/u/cosas/' + cosa.to_param
|
22
|
+
expect(response.body).to have_link(href: %r{/u/cosas/[\d]+/restore})
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
26
|
+
describe 'set breadcrumbs for all actions' do
|
27
|
+
it 'when flat archived index' do
|
28
|
+
get '/u/cosas/archived'
|
29
|
+
expect(response.body).to have_css('.breadcrumb a[href="/u/cosas"]')
|
30
|
+
end
|
31
|
+
|
32
|
+
it 'when nested archived index' do
|
33
|
+
get "/u/categoria_de_cosas/#{cosa.categoria_de_cosa.to_param}/cosas/archived"
|
34
|
+
expect(response.body).to \
|
35
|
+
have_css ".breadcrumb a[href=\"/u/categoria_de_cosas/#{cosa.categoria_de_cosa.to_param}/cosas\"]"
|
36
|
+
end
|
37
|
+
end
|
38
|
+
|
39
|
+
describe '#archive' do
|
40
|
+
let(:url) { "/u/cosas/#{cosa.to_param}/archive" }
|
41
|
+
|
42
|
+
it 'when accepts turbo stream' do
|
43
|
+
headers = { 'ACCEPT' => 'text/vnd.turbo-stream.html' }
|
44
|
+
expect { post url, headers: }.to change { cosa.reload.discarded_at }.to(be_present)
|
45
|
+
expect(response.body).to have_css('turbo-stream')
|
46
|
+
end
|
47
|
+
|
48
|
+
it 'when accepts only html' do
|
49
|
+
expect { post url }.to change { cosa.reload.discarded_at }.to(be_present)
|
50
|
+
expect(response).to redirect_to([:users, cosa])
|
51
|
+
end
|
52
|
+
|
53
|
+
context 'when fails' do
|
54
|
+
before do
|
55
|
+
allow_any_instance_of(Cosa).to receive(:discard).and_return(false)
|
56
|
+
end
|
57
|
+
|
58
|
+
it 'when accepts turbo stream' do
|
59
|
+
post url, headers: { 'ACCEPT' => 'text/vnd.turbo-stream.html' }
|
60
|
+
expect(response.body).to have_css('turbo-stream')
|
61
|
+
expect(response.body).to include('Hubo un error al intentar actualizar el coso')
|
62
|
+
expect(response).to have_http_status(:unprocessable_entity)
|
63
|
+
end
|
64
|
+
|
65
|
+
it 'when accepts only html' do
|
66
|
+
post url
|
67
|
+
expect(response).to redirect_to([:users, cosa])
|
68
|
+
expect(flash[:alert]).to eq 'Hubo un error al intentar actualizar el coso'
|
69
|
+
end
|
70
|
+
end
|
71
|
+
end
|
72
|
+
|
73
|
+
describe '#restore' do
|
74
|
+
subject do
|
75
|
+
post "/u/cosas/#{cosa.to_param}/restore"
|
76
|
+
end
|
77
|
+
|
78
|
+
let(:cosa) { create :cosa, discarded_at: Time.zone.now }
|
79
|
+
|
80
|
+
it do
|
81
|
+
expect { subject }.to change { cosa.reload.discarded_at }.to(be_nil)
|
82
|
+
end
|
83
|
+
end
|
84
|
+
end
|
@@ -29,7 +29,7 @@ describe 'redirection' do
|
|
29
29
|
context 'when account is discarded' do
|
30
30
|
it do
|
31
31
|
get '/u/cosas'
|
32
|
-
expect(response.body).to include 'No hay
|
32
|
+
expect(response.body).to include 'No hay ningún coso que mostrar'
|
33
33
|
logged_user.user_accounts.first.account.discard!
|
34
34
|
get '/u/cosas'
|
35
35
|
expect(response).to redirect_to users_account_switcher_path
|
@@ -62,7 +62,7 @@ describe 'redirection' do
|
|
62
62
|
get '/u/cosas'
|
63
63
|
expect(response).to have_http_status(:ok)
|
64
64
|
expect(response.body).to include other_account.to_s
|
65
|
-
expect(response.body).to include 'No hay
|
65
|
+
expect(response.body).to include 'No hay ningún coso que mostrar'
|
66
66
|
other_user_account.destroy!
|
67
67
|
get '/u/cosas'
|
68
68
|
expect(response).to redirect_to users_account_switcher_path
|
@@ -8,34 +8,27 @@ require 'rails_helper'
|
|
8
8
|
#
|
9
9
|
# DRIVER=selenium rspec
|
10
10
|
describe 'Breadcrumbs' do
|
11
|
-
subject(:visitar) do
|
12
|
-
visit path
|
13
|
-
end
|
14
|
-
|
15
|
-
let(:path) { "/a/cosas/#{cosa.id}" }
|
16
11
|
let(:cosa) { create :cosa }
|
17
|
-
let(:logged_user) { create :user, :developer }
|
18
12
|
|
19
13
|
before do
|
20
|
-
login_as
|
14
|
+
login_as create :user, :developer
|
15
|
+
|
16
|
+
# just to sort a circumvent a capybara issue
|
17
|
+
create_list :cosa, 1, categoria_de_cosa: cosa.categoria_de_cosa
|
21
18
|
end
|
22
19
|
|
23
20
|
describe 'some case' do
|
24
21
|
it do
|
25
|
-
|
22
|
+
visit "/a/cosas/#{cosa.id}"
|
26
23
|
|
27
24
|
expect(page).to have_css('nav ol.breadcrumb li').exactly(3)
|
28
25
|
expect(page).to have_css('nav ol.breadcrumb li a').exactly(1)
|
29
26
|
end
|
30
27
|
|
31
28
|
context 'cuando es con nested' do
|
32
|
-
let(:path) do
|
33
|
-
hashid = cosa.categoria_de_cosa.hashid
|
34
|
-
"/a/categoria_de_cosas/#{hashid}/cosas/#{cosa.id}"
|
35
|
-
end
|
36
|
-
|
37
29
|
it do
|
38
|
-
|
30
|
+
hashid = cosa.categoria_de_cosa.hashid
|
31
|
+
visit "/a/categoria_de_cosas/#{hashid}/cosas/#{cosa.id}"
|
39
32
|
|
40
33
|
expect(page).to have_css('nav ol.breadcrumb li').exactly(4)
|
41
34
|
expect(page).to have_css('nav ol.breadcrumb li a').exactly(1)
|
@@ -43,14 +36,9 @@ describe 'Breadcrumbs' do
|
|
43
36
|
end
|
44
37
|
|
45
38
|
context 'cuando es con nested y modal' do
|
46
|
-
let(:path) do
|
47
|
-
hashid = cosa.categoria_de_cosa.hashid
|
48
|
-
"/a/categoria_de_cosas/#{hashid}"
|
49
|
-
end
|
50
|
-
|
51
39
|
it do
|
52
|
-
|
53
|
-
|
40
|
+
visit "/a/categoria_de_cosas/#{cosa.categoria_de_cosa.hashid}"
|
41
|
+
find_all('td span[title=Ver] a').first.click
|
54
42
|
|
55
43
|
expect(page).to have_css('.modal nav ol.breadcrumb li').exactly(4)
|
56
44
|
expect(page).to have_no_css('.modal nav ol.breadcrumb li a')
|
@@ -8,7 +8,7 @@ describe 'Sign in' do
|
|
8
8
|
shared_examples 'destroy from index' do
|
9
9
|
subject do
|
10
10
|
accept_confirm do
|
11
|
-
find("##{dom_id(cosa)} span[title
|
11
|
+
find("##{dom_id(cosa)} span[title=\"Eliminar definitivamente\"] a").click
|
12
12
|
end
|
13
13
|
sleep 1
|
14
14
|
end
|
@@ -30,7 +30,7 @@ describe 'Sign in' do
|
|
30
30
|
shared_examples 'destroy from show' do
|
31
31
|
subject do
|
32
32
|
accept_confirm do
|
33
|
-
find('.btn-toolbar span[title=Eliminar] a').click
|
33
|
+
find('.btn-toolbar span[title="Eliminar definitivamente"] a').click
|
34
34
|
end
|
35
35
|
sleep 1
|
36
36
|
end
|
@@ -46,7 +46,7 @@ describe 'Sign in' do
|
|
46
46
|
it 'muestra el flash' do
|
47
47
|
subject
|
48
48
|
expect(page).to have_current_path('/a/cosas')
|
49
|
-
expect(page).to have_text('
|
49
|
+
expect(page).to have_text('Se eliminó el coso')
|
50
50
|
end
|
51
51
|
end
|
52
52
|
|
@@ -66,23 +66,23 @@ describe 'Modal windows' do
|
|
66
66
|
visit '/a/cosas'
|
67
67
|
find('span[title=Ver] a').click
|
68
68
|
accept_confirm do
|
69
|
-
find('.modal span[title=Eliminar] a').click
|
69
|
+
find('.modal span[title="Eliminar definitivamente"] a').click
|
70
70
|
end
|
71
|
-
expect(page).to have_text 'No hay
|
71
|
+
expect(page).to have_text 'No hay ningún coso que mostrar'
|
72
72
|
end
|
73
73
|
|
74
74
|
context 'cuando da error' do
|
75
75
|
before do
|
76
|
-
allow_any_instance_of(Cosa).to receive(:
|
76
|
+
allow_any_instance_of(Cosa).to receive(:destroy).and_return(false)
|
77
77
|
end
|
78
78
|
|
79
79
|
it do
|
80
80
|
visit '/a/cosas'
|
81
81
|
find('span[title=Ver] a').click
|
82
82
|
accept_confirm do
|
83
|
-
find('.modal span[title=Eliminar] a').click
|
83
|
+
find('.modal span[title="Eliminar definitivamente"] a').click
|
84
84
|
end
|
85
|
-
expect(page).to have_text '
|
85
|
+
expect(page).to have_text 'Hubo un error al intentar eliminar el coso'
|
86
86
|
end
|
87
87
|
end
|
88
88
|
end
|
@@ -22,7 +22,7 @@ describe 'Tenants' do
|
|
22
22
|
it do
|
23
23
|
visitar
|
24
24
|
|
25
|
-
expect(page).to have_text 'No hay
|
25
|
+
expect(page).to have_text 'No hay ningún coso que mostrar'
|
26
26
|
end
|
27
27
|
|
28
28
|
context 'when belongs to multiple accounts' do
|
@@ -45,7 +45,7 @@ describe 'Tenants' do
|
|
45
45
|
|
46
46
|
click_on other_account.to_s
|
47
47
|
visit '/u/categoria_de_cosas'
|
48
|
-
expect(page).to have_text 'No hay
|
48
|
+
expect(page).to have_text 'No hay ninguna categoría de cosa que mostrar'
|
49
49
|
end
|
50
50
|
|
51
51
|
it 'shows the profile form' do
|
@@ -65,10 +65,12 @@ document.addEventListener('pg:record-destroyed', (ev) => {
|
|
65
65
|
|
66
66
|
document.addEventListener('turbo:before-fetch-request', (ev) => {
|
67
67
|
// Si es POST, quito la opción text/vnd.turbo-stream.html para que
|
68
|
-
// on successful redirect no haya posibilidad de que se abra un modal
|
68
|
+
// on successful redirect no haya posibilidad de que se abra un modal.
|
69
|
+
// Si el link o form tiene data-turbo-stream entonces no se pisa el header.
|
69
70
|
// FIXME: buscar una manera mejor de hacerlo porque es para problemas
|
70
71
|
// quizás, con la movida de abrir modales desde JS
|
71
|
-
if (ev.detail.fetchOptions.method.toLowerCase() === 'post'
|
72
|
+
if (ev.detail.fetchOptions.method.toLowerCase() === 'post' &&
|
73
|
+
ev.target.dataset.turboStream === undefined) {
|
72
74
|
ev.detail.fetchOptions.headers.Accept = 'text/html, application/xhtml+xml'
|
73
75
|
}
|
74
76
|
|
@@ -6,5 +6,9 @@ export default class extends Controller {
|
|
6
6
|
this.element.querySelector('turbo-frame').reload()
|
7
7
|
ev.stopPropagation()
|
8
8
|
})
|
9
|
+
this.element.addEventListener('pg:record-updated', (ev) => {
|
10
|
+
this.element.querySelector('turbo-frame').reload()
|
11
|
+
ev.stopPropagation()
|
12
|
+
})
|
9
13
|
}
|
10
14
|
}
|
data/pg_rails/lib/version.rb
CHANGED
@@ -243,11 +243,11 @@ RSpec.describe <%= controller_class_name %>Controller do
|
|
243
243
|
describe 'DELETE #destroy' do
|
244
244
|
subject do
|
245
245
|
request.headers['Accept'] = 'text/vnd.turbo-stream.html,text/html'
|
246
|
-
delete :destroy, params: { id: <%= file_name %>.to_param,
|
246
|
+
delete :destroy, params: { id: <%= file_name %>.to_param, land_on: }
|
247
247
|
end
|
248
248
|
|
249
249
|
let!(:<%= nombre_tabla_completo_singular %>) { create :<%= nombre_tabla_completo_singular %> }
|
250
|
-
let(:
|
250
|
+
let(:land_on) { nil }
|
251
251
|
|
252
252
|
it 'destroys the requested <%= nombre_tabla_completo_singular %>' do
|
253
253
|
<% if options[:discard] -%>
|
@@ -259,20 +259,13 @@ RSpec.describe <%= controller_class_name %>Controller do
|
|
259
259
|
<% end -%>
|
260
260
|
end
|
261
261
|
|
262
|
-
<% if options[:discard] -%>
|
263
|
-
it 'setea el discarded_at' do
|
264
|
-
subject
|
265
|
-
expect(<%= nombre_tabla_completo_singular %>.reload.discarded_at).to be_present
|
266
|
-
end
|
267
|
-
|
268
|
-
<% end -%>
|
269
262
|
it 'envía el pg-event' do
|
270
263
|
subject
|
271
264
|
expect(response.body).to include('<pg-event data-event-name="pg:record-destroyed"')
|
272
265
|
end
|
273
266
|
|
274
|
-
context 'si hay
|
275
|
-
let(:
|
267
|
+
context 'si hay land_on' do
|
268
|
+
let(:land_on) { :index }
|
276
269
|
|
277
270
|
it 'redirects to the <%= table_name %> list' do
|
278
271
|
subject
|
@@ -9,13 +9,9 @@ require_dependency "<%= namespaced_path %>/application_controller"
|
|
9
9
|
<% module_namespacing do -%>
|
10
10
|
<% module_namespacing_2 do -%>
|
11
11
|
class <%= controller_class_name.split('::').last %>Controller < <%= parent_controller %>
|
12
|
-
before_action { @clase_modelo = <%= class_name.split('::').last %> }
|
13
|
-
|
14
12
|
include PgEngine::Resource
|
15
13
|
|
16
|
-
|
17
|
-
|
18
|
-
before_action :set_instancia_modelo, only: %i[new create show edit update destroy]
|
14
|
+
self.clase_modelo = <%= class_name.split('::').last %>
|
19
15
|
|
20
16
|
private
|
21
17
|
|
@@ -1,10 +1,3 @@
|
|
1
|
-
- content_for :title do
|
2
|
-
= @<%= singular_name %>.to_s
|
3
|
-
- content_for :actions do
|
4
|
-
= @<%= singular_name %>.destroy_link_redirect
|
5
|
-
.ms-1
|
6
|
-
= @<%= singular_name %>.edit_link
|
7
|
-
|
8
1
|
table.table.table-borderless.table-sm.w-auto.mb-0
|
9
2
|
- atributos_para_mostrar.each do |att|
|
10
3
|
tr
|
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.6.
|
4
|
+
version: 7.6.18
|
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-10-
|
11
|
+
date: 2024-10-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -663,7 +663,6 @@ files:
|
|
663
663
|
- pg_engine/app/assets/stylesheets/active_admin.scss
|
664
664
|
- pg_engine/app/assets/stylesheets/notifications.scss
|
665
665
|
- pg_engine/app/assets/stylesheets/pg_rails_b5.scss
|
666
|
-
- pg_engine/app/components/actions_component.rb
|
667
666
|
- pg_engine/app/components/alert_component.html.slim
|
668
667
|
- pg_engine/app/components/alert_component.rb
|
669
668
|
- pg_engine/app/components/asociable_modal_component.html.slim
|
@@ -743,6 +742,7 @@ files:
|
|
743
742
|
- pg_engine/app/mailers/pg_engine/base_mailer.rb
|
744
743
|
- pg_engine/app/mailers/pg_engine/user_mailer.rb
|
745
744
|
- pg_engine/app/models/account.rb
|
745
|
+
- pg_engine/app/models/concerns/pg_engine/naming.rb
|
746
746
|
- pg_engine/app/models/current.rb
|
747
747
|
- pg_engine/app/models/email.rb
|
748
748
|
- pg_engine/app/models/email_log.rb
|
@@ -815,6 +815,7 @@ files:
|
|
815
815
|
- pg_engine/config/initializers/view_component.rb
|
816
816
|
- pg_engine/config/initializers/zeitwerk.rb
|
817
817
|
- pg_engine/config/locales/devise.en.yml
|
818
|
+
- pg_engine/config/locales/es.rb
|
818
819
|
- pg_engine/config/locales/es.yml
|
819
820
|
- pg_engine/config/routes.rb
|
820
821
|
- pg_engine/config/simple_form/simple_form.rb
|
@@ -903,6 +904,7 @@ files:
|
|
903
904
|
- pg_engine/spec/requests/current_attributes_spec.rb
|
904
905
|
- pg_engine/spec/requests/devise_spec.rb
|
905
906
|
- pg_engine/spec/requests/public/webhooks_spec.rb
|
907
|
+
- pg_engine/spec/requests/resource_spec.rb
|
906
908
|
- pg_engine/spec/requests/users/accounts_spec.rb
|
907
909
|
- pg_engine/spec/requests/users/base_controller_spec.rb
|
908
910
|
- pg_engine/spec/requests/users/dashboard_spec.rb
|
@@ -986,6 +988,7 @@ files:
|
|
986
988
|
- pg_layout/app/views/layouts/pg_layout/devise.html.slim
|
987
989
|
- pg_layout/app/views/layouts/pg_layout/mailer.html.slim
|
988
990
|
- pg_layout/app/views/layouts/pg_layout/mailer.text.erb
|
991
|
+
- pg_layout/app/views/layouts/pg_layout/show.html.slim
|
989
992
|
- pg_layout/app/views/pg_layout/_flash.html.slim
|
990
993
|
- pg_layout/app/views/pg_layout/_navbar.html.erb
|
991
994
|
- pg_layout/app/views/pg_layout/_sidebar.html.erb
|