docs/rails.md in alba-2.2.0 vs docs/rails.md in alba-2.3.0
- old
+ new
@@ -12,13 +12,15 @@
You might want to add some configurations to initializer file such as `alba.rb` with something like below:
```ruby
# alba.rb
Alba.backend = :active_support
-Alba.enable_inference!(with: :active_support)
+Alba.inflector = :active_support
```
You can also use `:oj_rails` for backend if you prefer using Oj.
+
+Alba 2.2 introduced new Rails integration so that you don't have to add initializer file for setting inflector. You still need to add initializer file if you want to set backend or configure inflector with something different from `active_support`.
## Rendering JSON
You can render JSON with Rails in two ways. One way is to pass JSON String.