We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4529077 commit 05d743bCopy full SHA for 05d743b
README.md
@@ -220,7 +220,8 @@ class ExampleEntity < Grape::Entity
220
end
221
```
222
223
-You have always access to the presented instance with `object`
+You always have access to the presented instance (`object`) and the top-level
224
+entity options (`options`).
225
226
```ruby
227
class ExampleEntity < Grape::Entity
@@ -229,7 +230,7 @@ class ExampleEntity < Grape::Entity
229
230
private
231
232
def formatted_value
- "+ X #{object.value}"
233
+ "+ X #{object.value} #{options[:y]}"
234
235
236
0 commit comments