thecore_print_commons 3.0.3 → 3.0.4

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: 893987695fbd693d63533b2297545a8dc1301ccff8433f2f1e2f29ada9557d79
4
- data.tar.gz: 4f7905fd0410ab37910198409289a6ed5ac16211e6b1807a1ff9e201ab86d264
3
+ metadata.gz: 50d6d7b2f2b791faade51232bbd6ce53b0f6e6dc1e535f449f388671b50b5c5c
4
+ data.tar.gz: 9917b2fc7ab55d383d2e11ab9792caf6e5e577eea0cfb77a62c76a6303de6c28
5
5
  SHA512:
6
- metadata.gz: 22b3f43660218c7b76e67b64a47972b658a8a8a604e83bdecd55be04e868e7deffc692aec92ff3823c1b5f93696b1e68da54a4a1646e82c14e1f95f8db59b19d
7
- data.tar.gz: bd964c90f0425c9f7cabdd809d0d00e052415273c1a8f7ad24bacc03b74d91fcc040950f7b39efc4fbec128acc47d1a3534a3f1dbcbbeb235901e740d12c33d2
6
+ metadata.gz: ed4df94fdb20c98468afa43eac81e33c2766579b319bcd47b72100257f36d2a66ba9f4f4745680a9c652148a4bfb4c84590a27c727e377106132f17af89d3eab
7
+ data.tar.gz: a6c34863c12ea2d634b8c4df3c0259d17cc46af16ab71afca23d97eaaef1e6db9e653e02de1162f61f7ddfa0dddf6cc603944c9e3c34b8fc48769563d86ea19e
@@ -14,7 +14,12 @@ module RailsAdmin::Printer
14
14
  9100
15
15
  end
16
16
  end
17
- field :default, :toggle
17
+
18
+ if Object.const_defined?('RailsAdminToggleable')
19
+ field :default, :toggle
20
+ else
21
+ field :default
22
+ end
18
23
 
19
24
  show do
20
25
  field :temperature
@@ -25,7 +30,7 @@ module RailsAdmin::Printer
25
30
  field :temperature
26
31
  field :description
27
32
  end
28
-
33
+
29
34
  field :is_online do
30
35
  read_only true
31
36
  formatted_value do # used in form views
@@ -0,0 +1,2 @@
1
+
2
+ Rails.application.config.paths['db/migrate'] << File.expand_path("../../db/migrate", __dir__)
@@ -1,17 +1,4 @@
1
1
  module ThecorePrintCommons
2
2
  class Engine < ::Rails::Engine
3
-
4
- initializer 'thecore_print_commons.add_to_migrations' do |app|
5
- # Adds the list of Thecore Engines, so to manage seeds loading, i.e.:
6
- # Thecore::Base.thecore_engines.each { |engine| engine.load_seed }
7
- Thecore::Base.thecore_engines << self.class
8
- unless app.root.to_s.match root.to_s
9
- # APPEND TO MAIN APP MIGRATIONS FROM THIS GEM
10
- config.paths['db/migrate'].expanded.each do |expanded_path|
11
- app.config.paths['db/migrate'] << expanded_path
12
- end
13
- end
14
- end
15
-
16
3
  end
17
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: thecore_print_commons
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.3
4
+ version: 3.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gabriele Tassoni
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-02-06 00:00:00.000000000 Z
11
+ date: 2023-02-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thecore_background_jobs
@@ -43,6 +43,7 @@ files:
43
43
  - app/models/printer.rb
44
44
  - app/workers/print_worker.rb
45
45
  - config/initializers/abilities_thecore_print_commons_concern.rb
46
+ - config/initializers/add_to_db_migrate.rb
46
47
  - config/initializers/after_initialize_for_thecore_print_commons.rb
47
48
  - config/initializers/thecore_print_commons_static_links.rb
48
49
  - config/locales/telnet_print.activerecord.it.yml