Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,8 @@ class ExampleEntity < Grape::Entity
end
```

You have always access to the presented instance with `object`
You always have access to the presented instance (`object`) and the top-level
entity options (`options`).

```ruby
class ExampleEntity < Grape::Entity
Expand All @@ -229,7 +230,7 @@ class ExampleEntity < Grape::Entity
private

def formatted_value
"+ X #{object.value}"
"+ X #{object.value} #{options[:y]}"
end
end
```
Expand Down