File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -53,6 +53,12 @@ def merge(config)
53
53
Configuration . new ( **@options . merge ( config . options ) )
54
54
end
55
55
56
+ # Internal: Finalizes the configuration for a specific controller.
57
+ def with_defaults ( config )
58
+ @options = config . options . merge ( @options )
59
+ freeze
60
+ end
61
+
56
62
OPTION_NAMES . each do |option |
57
63
define_method ( option ) {
58
64
evaluate_option @options [ option ]
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ def use_inertia_instance_props
40
40
def _inertia_configuration
41
41
@_inertia_configuration ||= begin
42
42
config = superclass . try ( :_inertia_configuration ) || ::InertiaRails . configuration
43
- @inertia_config ? config . merge ( @inertia_config . freeze ) . freeze : config
43
+ @inertia_config &. with_defaults ( config ) || config
44
44
end
45
45
end
46
46
You can’t perform that action at this time.
0 commit comments