Skip to content

Commit e3c7df5

Browse files
author
peter scholz
authored
Merge pull request #239 from hedgesky/namespaced_entities_and_with_option
clarify exception in :with option usage for namespaces entities
2 parents fbcfbc6 + 313b9de commit e3c7df5

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)