We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 4c2c561 + e1640f7 commit 6249695Copy full SHA for 6249695
1 file changed
README.md
@@ -102,16 +102,16 @@ class AuthorResource < JSONAPI::Resource
102
103
def fetchable_fields
104
if (context.current_user.guest)
105
- super(context) - [:email]
+ super - [:email]
106
else
107
- super(context)
+ super
108
end
109
110
111
```
112
113
-Context flows through from the controller and can be used to control the attributes based on the current user (or other
114
-value).
+Context flows through from the controller to the resource and can be used to control the attributes based on the
+current user (or other value).
115
116
##### Creatable and Updatable Attributes
117
0 commit comments