File tree Expand file tree Collapse file tree 2 files changed +2
-6
lines changed
spec/dummy/app/controllers Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -37,10 +37,6 @@ def freeze
37
37
super
38
38
end
39
39
40
- def to_h
41
- @options . to_h
42
- end
43
-
44
40
def merge! ( config )
45
41
@options . merge! ( config . options )
46
42
self
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ class InertiaConfigTestController < ApplicationController
4
4
ssr_enabled : true ,
5
5
ssr_url : "http://localhost:7777" ,
6
6
layout : "test" ,
7
- version : "2 .0" ,
7
+ version : "1 .0" ,
8
8
)
9
9
10
10
# Test that modules included in the same class can also call it.
@@ -13,6 +13,6 @@ class InertiaConfigTestController < ApplicationController
13
13
)
14
14
15
15
def configuration
16
- render json : inertia_configuration . to_h
16
+ render json : inertia_configuration . send ( :options )
17
17
end
18
18
end
You can’t perform that action at this time.
0 commit comments