diff --git a/docs/guide/partial-reloads.md b/docs/guide/partial-reloads.md index 4e88cc6..f7a6102 100644 --- a/docs/guide/partial-reloads.md +++ b/docs/guide/partial-reloads.md @@ -196,10 +196,10 @@ class UsersController < ApplicationController users: InertiaRails.always(User.all), # Also works with block: - # users: InertiaRails.optional { User.all }, + # users: InertiaRails.always { User.all }, # Also works with a lambda: - # users: InertiaRails.optional(-> { User.all }), + # users: InertiaRails.always(-> { User.all }), } end end