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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 82f32dcab2381590d40e2176ea7d61b8d1dcd464740fcc50075bd5b0cd316b10
4
- data.tar.gz: 948f69d3b6442b4a63ba740a12f0319574a2fd011375ed409e3a42bf515af6d6
3
+ metadata.gz: 42ae5933a7ccec02822cf043344970eaa61dcf6ee0a01c48c5fae355cb86e282
4
+ data.tar.gz: 7d40e08a7ebe47ef261c8aa74ed362db3c6bb8def03f28e0c417a978b00b3d48
5
5
  SHA512:
6
- metadata.gz: 968f6293648026083685400e74da2edd264108e8f1a21bdec693ec3506e46dac07de2df37232fb4aaf4267ca1b77bfbfbe41a5fd555574dd1bd1595e6575a5b8
7
- data.tar.gz: '08535b9c4ae903b78245ad0f025720dd6669fbcee0ccd625fa6e84b6af5ac758a1159be0bde331deadc541ab703a4d1fc35a7292b3a650531485391e7879a3a9'
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
@@ -1,3 +1,3 @@
1
1
  module Tybo
2
- VERSION = '0.3.16'
2
+ VERSION = '0.3.17'
3
3
  end
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.16
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-11 00:00:00.000000000 Z
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.0.3.1
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: []