You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+74-30Lines changed: 74 additions & 30 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -67,8 +67,7 @@ Automatic component name is also opt in, you must set the `default_render` confi
67
67
68
68
### Layout
69
69
70
-
Inertia layouts use the rails layout convention and can be set or changed in the same way. The original `layout` config option is still functional, but will likely be deprecated in the future in favor
71
-
of using rails layouts.
70
+
Inertia layouts use the rails layout convention and can be set or changed in the same way.
72
71
73
72
```ruby
74
73
classEventsController < ApplicationController
@@ -133,20 +132,14 @@ end
133
132
}
134
133
```
135
134
136
-
Deep merging can be set as the project wide default via the InertiaRails configuration:
135
+
Deep merging can be configured using the `deep_merge_shared_data`configuration option.
137
136
138
-
```ruby
139
-
# config/initializers/some_initializer.rb
140
-
InertiaRails.configure do |config|
141
-
config.deep_merge_shared_data =true
142
-
end
143
-
144
-
```
145
-
146
-
If deep merging is enabled by default, it's possible to opt out within the action:
137
+
If deep merging is enabled, you can still opt-out within the action:
0 commit comments