para 0.12.4 → 0.12.5

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: 9a6fa08f8df1085f17f1f988dc1059f8442179e0d11e1fea66cfb6f1206f3c0a
4
- data.tar.gz: 53e0d26aa54c3402b3bb1ab78283a23802f151cf60cc139a354c177f103d6824
3
+ metadata.gz: bac06958cd2f4e9d4d35a59338f77934fcb812341d56778e2284f8165a18b978
4
+ data.tar.gz: '085f64e0d60c60e5562219db39a1fdc90d37eaa3e549918bed9a80814ac3acca'
5
5
  SHA512:
6
- metadata.gz: 22fd8dca678dd2d10589dcf7ebd06098ae3c8901f0b00643fedbf698ee3772ec74eb1ef74df4acf930cf99028ca8b8423408922d2450434f222b68e64bd927b9
7
- data.tar.gz: b7be03740c3004f80ece9fb7b3662e4fcbaec530603af948c6d805e68cb09bfce3e15231b7e39a6203eeb68244807797fa80c2d032d94928aef0f4690d48bb4e
6
+ metadata.gz: 6f32e3e3bd4c33a87ca98f900a0d46d03cc005737eb9131dd3395cb7247e0e926d45ceeefb2c8215f87eda98c19f77dd3e59b841d84dd544e250010fb8422f8f
7
+ data.tar.gz: 748a7875b0783387d1ebb8fbcb545827431e908aedd5381580a6aeed0703acf7354ef9aec4d03899110574e6cdd9071555519d86b441d0b812047bb6c56063af
@@ -38,6 +38,11 @@ Para.config do |config|
38
38
  #
39
39
  # config.uncollapse_inset_nested_fields = false
40
40
 
41
+ # Set this to false if you want to define the :file and :image simple form inputs in the
42
+ # app, to customize them.
43
+ #
44
+ # config.load_file_inputs = false
45
+
41
46
  # Set if the Para::Breadcrumb::Controller module should be included into the
42
47
  # app, allowing easy breadcrumbs management in the app.
43
48
  #
data/lib/para/config.rb CHANGED
@@ -49,6 +49,12 @@ module Para
49
49
  mattr_accessor :uncollapse_inset_nested_fields
50
50
  @@uncollapse_inset_nested_fields = true
51
51
 
52
+ # Allow setting `load_file_inputs` to false to disable loading of simple form file
53
+ # inputs from SimpleFormExtension::Inputs module, allowing to use custom file inputs
54
+ # from the app.
55
+ mattr_accessor :load_file_inputs
56
+ @@load_file_inputs = true
57
+
52
58
  # Allows changing default cache store used by Para to store jobs through
53
59
  # the ActiveJob::Status gem
54
60
  #
data/lib/para/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Para
4
- VERSION = '0.12.4'
4
+ VERSION = '0.12.5'
5
5
  end
@@ -8,9 +8,12 @@ module SimpleFormExtension
8
8
  autoload :CollectionCheckBoxesInput
9
9
  autoload :CollectionRadioButtonsInput
10
10
  autoload :ColorInput
11
- autoload :FileInput
12
- autoload :ImageInput
13
11
  autoload :SelectizeInput
14
12
  autoload :SliderInput
13
+
14
+ if Para.config.load_file_inputs
15
+ autoload :FileInput
16
+ autoload :ImageInput
17
+ end
15
18
  end
16
19
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: para
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.4
4
+ version: 0.12.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Valentin Ballestrino
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-09-04 00:00:00.000000000 Z
11
+ date: 2025-02-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: active_decorator
@@ -792,7 +792,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
792
792
  - !ruby/object:Gem::Version
793
793
  version: '0'
794
794
  requirements: []
795
- rubygems_version: 3.5.17
795
+ rubygems_version: 3.5.16
796
796
  signing_key:
797
797
  specification_version: 4
798
798
  summary: Rails admin engine