README.md in actionview-component-1.8.1 vs README.md in actionview-component-1.9.0
- old
+ new
@@ -13,11 +13,11 @@
As the goal of this gem is to be upstreamed into Rails, it is designed to integrate as seamlessly as possible, with the [least surprise](https://www.artima.com/intv/ruby4.html).
## Compatibility
-`actionview-component` is tested for compatibility with combinations of Ruby `2.4`/`2.5`/`2.6` and Rails `5.0.0`/`5.2.3`/`6.0.0`/`6.1.0.alpha`.
+`actionview-component` is tested for compatibility with combinations of Ruby `2.5`/`2.6` and Rails `5.0.0`/`5.2.3`/`6.0.0`/`6.1.0.alpha`.
## Installation
Add this line to your application's Gemfile:
```ruby
@@ -525,9 +525,14 @@
To use component previews, set the following in `config/application.rb`:
```ruby
config.action_view_component.preview_path = "#{Rails.root}/spec/components/previews"
```
+
+### Initializer requirement
+
+In Ruby 2.6.x and below, ActionView::Component requires the presence of an `initialize` method in each component.
+However, `initialize` is no longer required for projects using 2.7.x and above.
## Frequently Asked Questions
### Can I use other templating languages besides ERB?