Skip to content

Commit f68f48d

Browse files
committed
remove deprecated configurable concern
1 parent b5996e1 commit f68f48d

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

lib/typed_params/configuration.rb

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,13 @@
22

33
module 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
4041
end

lib/typed_params/schema.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff 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?

0 commit comments

Comments
 (0)