Skip to content

Commit 313b9de

Browse files
committed
clarify exception in :with option usage for namespaces entities
1 parent 38e36d0 commit 313b9de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,7 @@ The above will automatically create a `Status::Entity` class and define properti
444444

445445
### Using Entities
446446

447-
With Grape, once an entity is defined, it can be used within endpoints, by calling `present`. The `present` method accepts two arguments, the `object` to be presented and the `options` associated with it. The options hash must always include `:with`, which defines the entity to expose.
447+
With Grape, once an entity is defined, it can be used within endpoints, by calling `present`. The `present` method accepts two arguments, the `object` to be presented and the `options` associated with it. The options hash must always include `:with`, which defines the entity to expose (unless namespaced entity classes are used, see [next section](#entity-organization)).
448448
If the entity includes documentation it can be included in an endpoint's description.
449449

450450
```ruby

0 commit comments

Comments
 (0)