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
Introduces a `ViewComponent::GlobalConfig` object that will be the source for global configuration going forward. Ideally in the future, this will only house options that universally affect ViewComponent regardless of whether components are sourced from an engine or not (e.g. enabling the capture compatibility patch), and more options can move to a component-local config. For these options, classes inheriting from `ViewComponent::Base` will want to override configuration themselves.
This was initially written to support extracting the incoming strict_helpers_enabled? option, but applies to everything.
Copy file name to clipboardExpand all lines: docs/CHANGELOG.md
+8-4Lines changed: 8 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,6 +10,10 @@ nav_order: 5
10
10
11
11
## main
12
12
13
+
* Make accommodations for component-local config to be introduced in future.
14
+
15
+
*Simon Fish*
16
+
13
17
* Remove JS and CSS docs as they proved difficult to maintain and lacked consensus.
14
18
15
19
*Joel Hawksley*
@@ -1410,7 +1414,7 @@ Run into an issue with this release? [Let us know](https://github.com/ViewCompon
1410
1414
1411
1415
*Joel Hawksley*
1412
1416
1413
-
* The ViewComponent team at GitHub is hiring! We're looking for a Rails engineer with accessibility experience: [https://boards.greenhouse.io/github/jobs/4020166](https://boards.greenhouse.io/github/jobs/4020166). Reach out to joelhawksley@github.com with any questions!
1417
+
* The ViewComponent team at GitHub is hiring! We're looking for a Rails engineer with accessibility experience: [https://boards.greenhouse.io/github/jobs/4020166](https://boards.greenhouse.io/github/jobs/4020166). Reach out to <joelhawksley@github.com> with any questions!
1414
1418
1415
1419
*TheViewComponent team is hosting a happy hour at RailsConf. Join us for snacks, drinks, andstickers: [https://www.eventbrite.com/e/viewcomponent-happy-hour-tickets-304168585427](https://www.eventbrite.com/e/viewcomponent-happy-hour-tickets-304168585427)
1416
1420
@@ -2174,7 +2178,7 @@ Run into an issue with this release? [Let us know](https://github.com/ViewCompon
2174
2178
2175
2179
*MatheusRichard*
2176
2180
2177
-
*Are you interested in building the future of ViewComponent? GitHub is looking to hire a SeniorEngineer to work on PrimerViewComponentsandViewComponent. Applyhere: [US/Canada](https://github.com/careers) / [Europe](https://boards.greenhouse.io/github/jobs/3132294). Feel free to reach out to joelhawksley@github.com with any questions.
2181
+
*Are you interested in building the future of ViewComponent? GitHub is looking to hire a SeniorEngineer to work on PrimerViewComponentsandViewComponent. Applyhere: [US/Canada](https://github.com/careers) / [Europe](https://boards.greenhouse.io/github/jobs/3132294). Feel free to reach out to <joelhawksley@github.com> with any questions.
2178
2182
2179
2183
*JoelHawksley*
2180
2184
@@ -2192,7 +2196,7 @@ Run into an issue with this release? [Let us know](https://github.com/ViewCompon
2192
2196
2193
2197
## 2.31.0
2194
2198
2195
-
_Note:This release includes an underlying change to Slots that may affect incorrect usage of the API, where Slots were set on a line prefixed by `<%=`. The result of setting a Slot shouldn't be returned. (`<%`)_
2199
+
*Note:This release includes an underlying change to Slots that may affect incorrect usage of the API, where Slots were set on a line prefixed by `<%=`. The result of setting a Slot shouldn't be returned. (`<%`)*
2196
2200
2197
2201
* Add `#with_content` to allow setting content without a block.
2198
2202
@@ -2640,7 +2644,7 @@ _Note: This release includes an underlying change to Slots that may affect incor
2640
2644
2641
2645
*The gem name is now `view_component`.
2642
2646
*ViewComponent previews are now accessed at `/rails/view_components`.
2643
-
*ViewComponents can _only_ be rendered with the instance syntax:`render(MyComponent.new)`. Supportfor all other syntaxes has been removed.
2647
+
*ViewComponents can *only* be rendered with the instance syntax:`render(MyComponent.new)`. Supportfor all other syntaxes has been removed.
2644
2648
*ActiveModel::Validations have been removed. ViewComponent generators no longer include validations.
class_option:preview_path,type: :string,desc: "Path for previews, required when multiple preview paths are configured",default: ViewComponent::Base.config.generate.preview_path
7
+
class_option:preview_path,type: :string,desc: "Path for previews, required when multiple preview paths are configured",default: ViewComponent::GlobalConfig.generate.preview_path
0 commit comments