tybo 0.0.29 → 0.0.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ba87b228afc0fbf8d86b0e7a131014e3b3ea48dc2371b1683370a84abfc325b0
|
|
4
|
+
data.tar.gz: e74cb37337e05ec1cb5ab8b2c58b68aa481c351c639c5ef2bcb547e5308fafd8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ebe56be83770dc24bc3a86df204b1706b8c877f35b9c75730400976381dc57d92e84d2c39080076099db1b06f3cc90c5cb6c896b7d243e7bed9d89b5f9d4b347
|
|
7
|
+
data.tar.gz: 5deda09e96c218454755eb4b9bfa0b8cb151fdf32b4f54dcf39f1a961d2e7700d2564ee57ef20aa4e389f2eadcfc5e385aab61e2252b3fba37c810b83a91f592
|
|
@@ -20,7 +20,7 @@ class BoGenerator < Rails::Generators::NamedBase
|
|
|
20
20
|
template 'show.html.erb', File.join("app/views/#{options[:namespace]}", "#{plural_name}/show.html.erb")
|
|
21
21
|
template 'controller.rb', File.join("app/controllers/#{options[:namespace]}", "#{plural_name}_controller.rb")
|
|
22
22
|
template 'policy.rb', File.join("app/policies/bo/#{options[:namespace]}", "#{file_name.underscore}_policy.rb")
|
|
23
|
-
unless File.exists?("app/policies/bo/#{options[:namespace]}.rb")
|
|
23
|
+
unless File.exists?("app/policies/bo/#{options[:namespace]}_policy.rb")
|
|
24
24
|
template 'namespace_policy.rb', "app/policies/bo/#{options[:namespace]}_policy.rb"
|
|
25
25
|
end
|
|
26
26
|
create_translations
|
|
@@ -64,7 +64,7 @@ class BoGenerator < Rails::Generators::NamedBase
|
|
|
64
64
|
end
|
|
65
65
|
|
|
66
66
|
def excluded_columns
|
|
67
|
-
%i[id created_at updated_at]
|
|
67
|
+
%i[id created_at updated_at encrypted_password]
|
|
68
68
|
end
|
|
69
69
|
|
|
70
70
|
def permited_params
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
<%%= tr.with_td do %>
|
|
20
20
|
<%%= link_to <%="#{options[:namespace]}_#{class_name.underscore}_path(#{class_name.underscore})"%>,
|
|
21
21
|
class: "text-tybo-600 hover:text-tybo-900",
|
|
22
|
-
data: {turbo_method: :delete, turbo_confirm: "êtes
|
|
22
|
+
data: {turbo_method: :delete, turbo_confirm: "êtes-vous sûr ?"} do %>
|
|
23
23
|
<%%= render(Icons::TrashComponent.new) %>
|
|
24
24
|
<%% end %>
|
|
25
25
|
<%% end %>
|
data/lib/tybo/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: tybo
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.30
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Michel Delpierre
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2023-03-
|
|
12
|
+
date: 2023-03-16 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: rails
|