tybo 0.3.16 → 0.3.17
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/generators/tybo_install/tybo_install_generator.rb +10 -2
- data/lib/tybo/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 42ae5933a7ccec02822cf043344970eaa61dcf6ee0a01c48c5fae355cb86e282
|
4
|
+
data.tar.gz: 7d40e08a7ebe47ef261c8aa74ed362db3c6bb8def03f28e0c417a978b00b3d48
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6d65b7fdea62c85e201aa20882311c6d1b1a0bcc30c4a0eed8e80362975d777099eaa56baf5fe9e800d1b00bc2806c6ce758ede37fbdd7fc97b43cd8a8408a63
|
7
|
+
data.tar.gz: 2edda7f021ef92edc67271662a999f8bfb3273571bca439e37a90d60b881310e2a32ed1033221363cf3906605c73ae99b40978208777b55bb6972425d29d8944
|
@@ -31,8 +31,6 @@ class TyboInstallGenerator < Rails::Generators::Base
|
|
31
31
|
route "mount Tybo::Engine => \"/tybo\""
|
32
32
|
end
|
33
33
|
|
34
|
-
|
35
|
-
|
36
34
|
def install_administrators
|
37
35
|
run 'rails g bo_namespace Administrator'
|
38
36
|
end
|
@@ -46,5 +44,15 @@ class TyboInstallGenerator < Rails::Generators::Base
|
|
46
44
|
"application.register('dropdown', Dropdown)\napplication.register('flash', Flash)\napplication.register('search-form', SearchForm)\napplication.register('ts--search', TsSearch)\napplication.register('ts--select', TsSelect)\n"
|
47
45
|
end
|
48
46
|
end
|
47
|
+
|
48
|
+
def add_ransack_attributes
|
49
|
+
inject_into_file 'app/models/application_record.rb', after: "primary_abstract_class\n" do
|
50
|
+
"def self.ransackable_attributes(_auth_object = nil)
|
51
|
+
column_names + _ransackers.keys
|
52
|
+
end\ndef self.ransackable_associations(_auth_object = nil)
|
53
|
+
reflect_on_all_associations.map { |a| a.name.to_s }
|
54
|
+
end\n"
|
55
|
+
end
|
56
|
+
end
|
49
57
|
end
|
50
58
|
|
data/lib/tybo/version.rb
CHANGED
metadata
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tybo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.17
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michel Delpierre
|
8
8
|
- Julien Camblan
|
9
|
-
autorequire:
|
9
|
+
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2024-01-
|
12
|
+
date: 2024-01-29 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
@@ -283,7 +283,7 @@ licenses:
|
|
283
283
|
- MIT
|
284
284
|
metadata:
|
285
285
|
homepage_uri: https://rubygems.org/gems/tybo
|
286
|
-
post_install_message:
|
286
|
+
post_install_message:
|
287
287
|
rdoc_options: []
|
288
288
|
require_paths:
|
289
289
|
- lib
|
@@ -298,8 +298,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
298
298
|
- !ruby/object:Gem::Version
|
299
299
|
version: '0'
|
300
300
|
requirements: []
|
301
|
-
rubygems_version: 3.
|
302
|
-
signing_key:
|
301
|
+
rubygems_version: 3.5.4
|
302
|
+
signing_key:
|
303
303
|
specification_version: 4
|
304
304
|
summary: A tailwind custom admin engine for Ruby on Rails
|
305
305
|
test_files: []
|