File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 22
33module TypedParams
44 class Configuration
5- include ActiveSupport ::Configurable
6-
75 ##
86 # ignore_nil_optionals defines how nil optionals are handled.
97 # When enabled, optional params that are nil will be dropped
108 # given the schema does not allow_nil. Essentially, they
119 # will be treated as if they weren't provided.
12- config_accessor ( :ignore_nil_optionals ) { false }
10+ class_attribute :ignore_nil_optionals
11+ self . ignore_nil_optionals = false
1312
1413 ##
1514 # path_transform defines the casing for parameter paths.
@@ -22,7 +21,8 @@ class Configuration
2221 # - :dash
2322 # - nil
2423 #
25- config_accessor ( :path_transform ) { nil }
24+ class_attribute :path_transform
25+ self . path_transform = nil
2626
2727 ##
2828 # key_transform defines the casing for parameter keys.
@@ -35,6 +35,7 @@ class Configuration
3535 # - :dash
3636 # - nil
3737 #
38- config_accessor ( :key_transform ) { nil }
38+ class_attribute :key_transform
39+ self . key_transform = nil
3940 end
4041end
Original file line number Diff line number Diff line change @@ -269,7 +269,6 @@ def keys
269269 end
270270 end
271271
272-
273272 def root? = key == ROOT
274273 def child? = !root?
275274 def children? = !children . blank?
You can’t perform that action at this time.
0 commit comments